Repository navigation
feat(cli): one-line disc grammar for tool cards and thinking chrome - #1056
Merged
Merged
Conversation
Seam 2 of #1053. Compact tool cards collapse to a single disc-grammar row `● Name primary · duration · summary ›`: a status disc (muted = done, accent = running, danger = error/aborted) replaces the "Tool" label and wordy status text, duration shows integer seconds, and a dim trailing `›` replaces the `(Ctrl+O)` hint. Live output and stop hints move to the expanded card so collapse never grows a second line (no height jitter). The expanded header reuses the same disc grammar. Thinking chrome switches to English (`Thinking…` / `Thinking`) and drops the inline Ctrl+T hint. Test assertions updated to the new single-line shape; running-card live-output and stop-guidance checks now verify the expanded card. 364 tests pass. Refs #1053.
Astro-Han
force-pushed
the
feat/cli-tui-tool-grammar
branch
from
July 16, 2026 02:44
c445886 to
ca8d2d3
Compare
Astro-Han
changed the base branch from
feat/cli-tui-semantic-color-slots
to
main
July 16, 2026 02:44
… on overflow Address Codex + Claude Opus review findings on #1056: - toolDisc now maps `failed` (background shell_run failed/timed_out/ orphaned) to the danger disc alongside error/aborted, instead of the muted done disc. The disc is the sole status carrier on the collapsed row, so a failed run was previously indistinguishable from success. - renderCompactToolBlock now allocates width so the disc, name, duration, and `›` are always preserved; only the input and summary text truncate on overflow. A long command previously hid elapsed time and the expand marker - a regression from the single-line reorder, which moved duration from before the input to after it. Adds regression tests for the failed danger disc and for duration/`›` surviving a width overflow. 366 tests pass.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Seam 2 of #1053 - the one-line disc grammar for tool cards and thinking chrome. Stacked on #1054 (seam 1, which adds the
disc()primitive).Compact tool cards collapse from 1–2 lines to a single disc-grammar row:
Toollabel and wordy status text: muted●= done, accent●= running, danger●= error/aborted.5s,running 12s) instead ofNms.›replaces the(Ctrl+O)hint.● Name · duration).Thinking chrome switches to English (
Thinking…/Thinking) and drops the inlineCtrl+Thint.Verification
npm test --workspace maka-agent- 364 tests pass.Stacked on #1054; rebase to
mainonce it merges. Refs #1053.