You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[FEATURE]: Collapse shell tool output by default with summary title #45538
I have verified this feature I'm about to request hasn't been suggested before.
Describe the enhancement you want to request
Currently shell tool outputs are partially expanded and take most of the vertical scroll. This buries the reasoning chain and makes it hard to scan/correct.
Proposal:
Default collapsed, show one-line summary: Shell: <command> (exit code, N lines) and expand on click
Limit collapsed preview to 2-3 lines with fade
Keep the existing setting Shell Tool Parts Expanded default OFF
This makes the timeline more compact, similar to Codex, and easier for desktop users who follow the chain.
#54039 adds this to the v1 TUI as a tui.json setting rather than a toggle. tool_output.collapse sets how many lines each tool block shows before Click to expand, per group (bash, generic for plugin and MCP tools, write, edit, apply_patch) or per tool name. 0 collapses a block to just its title or command, so every tool call takes one line until clicked, and "never" keeps it fully expanded. Write, edit and patch blocks gain the expand toggle too. There's no slash command or keybind for a global switch.
Thanks for the suggestion! Since 2.0.0, desktop and web sessions use the Compact timeline preset by default, keeping shell details collapsed and expandable; choose Settings → Preferences → Timeline → Timeline detail → Compact to enable it on an existing setup. Update with opencode upgrade or npm i -g @opencode/cli@latest (desktop: update the app). Please comment or reopen if shell output still expands unexpectedly on that version.
Activity
github-actions commentedon Aug 27, 2026
This issue might be a duplicate of existing issues. Please check:
Nowaker commentedon Oct 9, 2026
#54039 adds this to the v1 TUI as a
tui.jsonsetting rather than a toggle.tool_output.collapsesets how many lines each tool block shows before Click to expand, per group (bash,genericfor plugin and MCP tools,write,edit,apply_patch) or per tool name.0collapses a block to just its title or command, so every tool call takes one line until clicked, and"never"keeps it fully expanded. Write, edit and patch blocks gain the expand toggle too. There's no slash command or keybind for a global switch.{ "tool_output": { "collapse": { "bash": 0, "generic": 0, "write": 0, "edit": 0, "apply_patch": 0 } } }This comment is AI generated, but under direct supervision and on request of @Nowaker.
neriousy commentedon Oct 20, 2026
Thanks for the suggestion! Since 2.0.0, desktop and web sessions use the Compact timeline preset by default, keeping shell details collapsed and expandable; choose Settings → Preferences → Timeline → Timeline detail → Compact to enable it on an existing setup. Update with
opencode upgradeornpm i -g @opencode/cli@latest(desktop: update the app). Please comment or reopen if shell output still expands unexpectedly on that version.