Skip to content

desktop: thinking and shell entries stay collapsed while streaming with Group + Collapse enabled #63046

Open

Description

@Irsyadmr354

Summary

With the default timeline detail (Group on, Collapse on), thinking blocks and shell output are rendered collapsed from the moment they start. The content is hidden while it is being produced, so users cannot follow reasoning or command output live. They should stay expanded while the step is running and collapse once it completes.

Environment

  • opencode version: 2.2.6 (desktop, Windows x64 installer)
  • OS: Windows_NT 10.0.26300 (win32 x64)
  • Terminal: Unavailable: desktop app, no terminal environment
  • Shell: C:\WINDOWS\system32\cmd.exe
  • Install/channel: release desktop app
  • Active plugins: None found in config

Reproduction

  1. Open Preferences and leave Timeline detail at the default (Group on, Collapse on), or select the Compact preset.
  2. Start a session and send a prompt that triggers thinking and a shell command.
  3. Watch the timeline while the step is still streaming.

Expected Behavior

The in-progress thinking entry and shell entry render expanded, so the reasoning text and command output are visible as they arrive. When the step completes, the entry collapses to its summary line. That gives live visibility without leaving the finished timeline fully expanded.

Actual Behavior

The entry is collapsed immediately, including while it is still streaming. The output is hidden behind a click even though it is actively being generated. Finished and in-progress entries look identical, so the Collapse setting provides no distinction between live and completed activity.

Additional Context

Requested behavior: open while producing, collapse when done. Workaround is to expand entries manually or disable Collapse, which loses the compact timeline for finished steps. Reproducible consistently.

Activity

  1. opencodejr commented on Nov 10, 2026

    @opencodejr
    Contributor

    Thanks for the clear write-up, @Irsyadmr354!

    You're asking for thinking and shell entries in the desktop timeline to stay expanded while they are still streaming and collapse to their summary line once they finish, when the Timeline detail Collapse setting is on (as in the default Compact preset). That way you can follow reasoning and command output live and still have a compact timeline afterwards.

    Right now this is how it was built: when Collapse is on, entries start collapsed even while running. A streaming thinking entry shows a live heading in its summary line, and you can open it, or a running shell entry, by hand. So I'm tracking this as a feature request, not a bug. The maintainers will consider it.

    Related issues:

    This can't be done as a plugin today, because plugins can't control how the desktop timeline expands its entries.

  2. Irsyadmr354 commented on Nov 10, 2026

    @Irsyadmr354
    Author

    [FEATURE]: desktop: Collapse should apply once streaming and output finish, not for the whole lifetime of the entry

    Describe the enhancement you want to request

    Current behavior

    With Timeline detail at Group on + Collapse on (the default Compact preset), thinking and shell entries are collapsed the moment they appear, including while they are still streaming. The reasoning text and the command output are hidden while they are being produced, so the only way to follow a run live is to click each entry open by hand, on every step.

    Why this reads as a bug to a user

    Collapse is naturally understood as a property of finished content: the entry is done, here is its one-line summary, expand it for detail. Applying it from the first token removes exactly the visibility that matters while the step is running, and it makes an in-progress entry indistinguishable from a completed one.

    Requested change

    Keep in-progress thinking and shell entries expanded while they stream, and collapse them once the step completes and its output is final. With Collapse on, collapsing should describe the finished state, not the live one. Completed entries would keep their summary line exactly as they do today, and no new setting is required.

    Scope

    Desktop app timeline, which shares the UI code with the web app. The TUI side is already covered by related requests.

    Benefits

    Reasoning and shell output stay visible while they matter, without manual clicking. The compact finished timeline stays unchanged, and "Collapse" starts meaning what users assume it means.

    Related

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions