Skip to content

fix(cli): make the session banner two lines, not a table - #385

Open
agjs wants to merge 1 commit into
mainfrom
fix/compact-session-banner
Open

fix(cli): make the session banner two lines, not a table#385
agjs wants to merge 1 commit into
mainfrom
fix/compact-session-banner

Conversation

@agjs

@agjs agjs commented Sep 7, 2026

Copy link
Copy Markdown
Collaborator

Follow-up to #382. The aligned label/detail table it shipped reads well wide and badly narrow — which is the case that got reported.

What was wrong

The label column is fixed overhead. On a ~34-column main pane — a normal terminal at a large font — it left ~20 columns for the value, so every detail wrapped raggedly:

◆ plan mode   reply approve to
              build

github        on · git + PR review
              via gh
image         read + generate ·
              drag/@ to attach
delegation    4 specialists · cap 1
              · explore, research,
              review-lens, verify

Measured, not guessed: instrumenting seedPaneLanding showed mainInnerCols() returning 83 on a 150-column terminal — correct. The width was never wrong; the layout was wrong for narrow panes. The table was my invention in #382 and it was the wrong shape for the job.

Now

Capabilities share one flowing ·-separated line. Details ride in parentheses only while the whole line fits on a row; below that the names stand alone — the names are what you scan for, the details are a nicety, and three wrapped rows of parentheticals is the wall of text this banner exists to avoid.

At ~34 columns:

  ◆ plan mode · approve to build
  github · image · delegation

At 83:

  ◆ plan mode · approve to build
  github (git + PR review) · image (read + generate) · delegation (×4, cap 1)

Also: specialist names left the banner (discoverable via /agents), paths moved to notes instead of bloating the capability list, and the headline lost reply so it fits a narrow pane on one row. Wrapped rows still hang-indent deeper than the first, so nothing snaps back to column 0.

Verification

  • bun test packages — 5908 pass, 0 fail
  • bun run e2e:pty — 0 [FAIL]
  • typecheck / lint / format / rules / arch clean
  • In a 60-column pty (the reported shape): parentheticals correctly dropped, each chip appears exactly once, run-meta line zero times

The aligned label/detail table shipped in 0.53.8 reads well on a wide
pane and badly on a narrow one, which is the case that was reported. The
label column is fixed overhead: on a ~34-column main pane (a normal
terminal at a large font) it left ~20 columns for the value, so every
detail wrapped raggedly and the banner ran to ten rows of it.

Measured rather than guessed: instrumenting seedPaneLanding showed
mainInnerCols() returning 83 on a 150-column terminal — correct. The
width was never wrong; the layout was wrong for narrow widths. A table
was my invention here, and it was the wrong shape for the job.

Capabilities are a short list, so they now share ONE flowing
`·`-separated line, and the details ride in parentheses only while the
whole line fits on a row. Below that the names stand alone — the names
are what a reader scans for, the details are a nicety, and three wrapped
rows of parentheticals is exactly the wall of text this banner is meant
to avoid.

At ~34 columns:

    ◆ plan mode · approve to build
    github · image · delegation

and at 83:

    ◆ plan mode · approve to build
    github (git + PR review) · image (read + generate) · delegation (×4, cap 1)

Specialist names left the banner (discoverable via /agents), paths moved
to notes rather than bloating the capability list, and the headline lost
"reply " so it fits a narrow pane on one row. Wrapped rows still hang-
indent deeper than the first, so nothing snaps back to column 0.

Verified in a 60-column pty: the parentheticals are correctly dropped,
each chip appears exactly once, and the run-meta line zero times.
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Sep 7, 2026

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
tsforge 7e3f82c Commit Preview URL

Branch Preview URL
Sep 07 2026, 10:18 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant