Agent panel: expand a turn live while the agent works, then collapse it into Thinking / Commands / Edits sections when done #58314
Ekleog-Polygon
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
What are you proposing?
Render each agent turn in two phases, so a long conversation stays scannable
without losing any detail.
Phase 1 — while the agent is working (live)
Show the full turn as an interleaved, expanded transcript, exactly as it
happens:
of the diff with a "see more" at the bottom to expand the rest.
with a "see more" at the top to reveal earlier output.
This is the current live experience, just with previews instead of full dumps.
Phase 2 — once the final answer is ready (settled)
The turn collapses into three top-level collapsible sections plus the final
message:
interleaved transcript from Phase 1 (reasoning with the command/edit
sub-cards inline, in order), because that context explains why the agent
did what it did. The nested command/edit sub-cards inside it are collapsed
to headers by default.
So a completed turn reads as:
Everything stays one click away, but scrolling back through a long conversation
shows a clean, uniform summary of each turn instead of hundreds of interleaved
reasoning tokens, diffs, and command outputs.
This would be the default behavior. A setting could let people who prefer the
current always-expanded stream opt back into it.
Why does this matter?
In longer sessions the panel becomes very hard to navigate — you scroll past
huge expanded thinking blocks (expanded by default since #51525 / #52536), many
small read/edit cards, and command output just to find each turn's answer or to
remember "what actually changed." Collapsing a finished turn into Thinking /
Commands / Edits gives a stable overview and makes it trivial to answer "what
files did it touch?" or "what commands did it run?" at a glance — while keeping
the live, fully-expanded view intact while the agent is actually working.
Prior art
The "expand while active, collapse when done" pattern is well established:
that same pattern to the whole turn and adds the two filtered sections.
the moment the response finishes; compact mode collapses diffs.
for full), command output folds to
+N lines (ctrl+o to expand).… +N lines(Ctrl+T for the fulltranscript) and has a proposed "semantic narrative view" over raw logs
(Feature: Semantic narrative view as an alternative to raw execution logs openai/codex#13544).
/thinkingand/detailstoggles.How this relates to existing requests
This unifies several open Feature Requests rather than competing with them:
section auto-collapsing when done.
section.
It also builds directly on the existing
agent.expand_edit_cardandagent.expand_terminal_cardsettings — adding (a) a live ~20-line preview state,(b) the collapse-on-completion transition, and (c) the two type-filtered sections
on top of those primitives.
Notes
inline (duplicated with the dedicated sections) — that interleaving is the
point: it preserves the order and rationale of the turn.
in the same AcpThreadView as the native agent.
Zed version
Zed 1.4.4 1d0b482638588e5507184d91631e30596339ee1b(Linux)Beta Was this translation helpful? Give feedback.
All reactions