Skip to content

[FEATURE]: Collapse shell tool output by default with summary title #45538

Closed

Description

@srafyhucl-cpu

Feature hasn't been suggested before.

  • 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.

Activity

  1. github-actions commented on Aug 27, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

  2. Nowaker commented on Oct 9, 2026

    @Nowaker

    #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.

    { "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.

  3. neriousy commented on Oct 20, 2026

    @neriousy
    Member

    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.

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions