You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Feature] Auto-collapse a completed turn into one "Completed N steps" summary row + final reply #354
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:
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.
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.
Activity
feat(chat): label completed turns as 'Completed N steps' (fixes ompwe…
Merge pull request ompweb-dev#553 from ompweb-dev/fix-issue-354-2026-…