Skip to content

Support collapsed tool output by default with configurable expand behavior #2624

@yiliang114

Description

@yiliang114

What would you like to be added?

I would like shell and other verbose tool outputs to not be fully expanded by default. Instead, they should be collapsible by default and expanded only when needed.

An ideal behavior would be:

  • long tool outputs are collapsed by default
  • users can expand them with a shortcut such as ctrl+e
  • there is a setting to control whether tool outputs are expanded or collapsed by default
Image

Why is this needed?

Shell and similar tool outputs are currently shown fully expanded, which can take up a large portion of the terminal even when the content is not important at that moment.

This causes a few problems:

  • too much low-value output fills the screen
  • the conversation becomes harder to read
  • it is less smooth to continue following the interaction afterward

A collapsed-by-default behavior would fit terminal usage better. A configurable default would also support different user preferences.

Additional context

It would be best if this worked consistently with other expandable UI patterns in the product, for example: collapsed by default, and expanded with ctrl+e.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions