Repository navigation
Tool cards: let a settled card fold to its header, like thinking blocks #1904
dragon-defy-sky
started this conversation in
Ideas
Replies: 1 comment
|
Issue only accept bug report for non-contributors. plz use discussions. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Summary
Thinking blocks fold to a one-line header the moment the model moves past thinking (
thinkingFold: preview). Tool cards do not: a settled card always keeps its command header plus up to three body lines, so any turn with several tool calls stays tall and reads nothing like the thinking rows sitting between them.Expected
A settled tool card should be able to collapse to its header alone (with the existing "…N lines / Ctrl+O expands" hint) — the same settle-fold that thinking already gets — while running cards and errors keep their preview.
Where it lives (verified on 0.19.0)
lib/types/components/messages/AssistantToolUseMessage.jsconst TEXT_BODY_MAX_LINES = 3;/const DIFF_BODY_MAX_LINES = 8;const cap = view?.card === 'diff' ? DIFF_BODY_MAX_LINES : TEXT_BODY_MAX_LINES;→capLines(bodyLines, cap, bodyUncapped, ...)capLines()already handlesmax = 0cleanly (body becomes the single fold-hint line).lib/types/settings/definitions.jsexposes every display knob; none controls the tool body budget.foldTerminalCommandonly folds a multi-line command header to its first line + count, which still leaves the 3-line body.Proposal
Add a setting next to
thinkingFold, e.g.hiddencaps a settled card's body at 0 lines, keeping the current behavior for:Evidence that the shape works
Patching that single line to
renders exactly the wanted card: header line + fold hint, expandable via Ctrl+O or a click.
Environment
thinkingFold: previewAll reactions