Skip to content

Feature request: Fold/collapse prompt and AI output to save space #64276

Open

Description

@jeelan1-com

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

It would be great if OpenCode could let us fold/collapse both the prompt and the AI's output, to save space.

This is a feature request migrated from Discord feedback.

Activity

  1. opencodejr commented on Nov 16, 2026

    @opencodejr
    Contributor

    Thanks for bringing this over from Discord! You're asking for a way to fold or collapse both your prompts and the AI's replies in a session, so long exchanges take up less space. Maintainers will consider it.

    The desktop/web app already has part of this as an experimental setting: Settings → Experimental → Fold long messages. It folds your own messages past 12 lines behind a Read more button. It is off until it ships, and it only covers your messages, not the AI's replies. It was added in #59435.

    If you mainly use the terminal UI (TUI) or the desktop app, please say which. That helps decide where this would go.

    Related requests that cover part of this:

  2. added
    type/feature
    version/v2
    on Nov 16, 2026
  3. illesma commented on Nov 25, 2026

    @illesma

    +1, desktop app. Long agent sessions (many tool calls per turn) are hard to follow because every earlier reply stays expanded.

    What would help, beyond folding long user messages:

    • collapse or expand a single assistant reply to its first line or a summary;
    • "collapse all previous turns" or "mark read up to here", so only new turns stay expanded;
    • a setting for the default, for example collapse previous turns automatically.

    Workaround today: hiding thinking and grouping tool calls reduce clutter but do not collapse a reply.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/featureversion/v2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions