Skip to content

[Feature] Auto-collapse a completed turn into one "Completed N steps" summary row + final reply #354

Closed

Description

@yrxeva

Problem

During a turn the chat fills up with scattered groups: thinking block → tool call → tool output → thinking → … each as its own collapsible row. By the time the final answer starts streaming in, it sits several screens down, buried under the intermediate trajectory. Reading history is the same: you scroll past many rows of tool noise to find the one thing that matters — the final reply.

Current mitigations exist (tool calls default collapsed, toolCallsDefaultCollapsed; thinking hidden via hideThinking; #232 added "expand thinking by default"), but even collapsed each group is still its own row, so a heavy turn is still a tall stack of collapsed rows.

Proposal

When a turn completes, auto-collapse the whole intermediate trajectory into a single summary row, and keep only the final reply expanded:

▸ ✓ Completed 12 steps · 8 tool calls · 3 thinking blocks · 2m 41s
  [final assistant reply — fully visible]
  • Clicking the summary row expands the full trajectory (tool calls, outputs, thinking) for people who want the details — nothing is lost, just not on screen by default.
  • While the turn is still streaming, keep current live behavior (so you can follow along); the fold happens when the final answer starts/finishes. Note [Bug] Sessions run outside ompweb fold the current turn, and an expanded group collapses on every new message #136 describes the inverse bug for externally-run sessions — the desired end state is: live = expanded, finished = one summary row + final reply.
  • A settings toggle (next to "Keep tool calls collapsed") to disable auto-folding for people who prefer the full transcript.

This matches the interaction of Codex / Claude Code / Cursor CLIs ("Completed N steps in Xm Ys") and would make long turns dramatically easier to scan.

Related: #136, #232, #245.

ompweb v0.6.0.

Activity

  1. added 2 commits that reference this issue on Nov 23, 2026
    055b467
    5d23708
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