feat(agent): show live progress in conversation pane#111
Merged
Conversation
The agent pane previously showed progress only as transient text in the composer status line: raw ACP enums leaked into the UI, tool activity vanished as it happened, thought chunks were discarded, and the queue count was clobbered by the next activity event. While waiting there was no spinner, elapsed time, or streaming cue. Core: - New SetTextPanelStatus host action renders a dedicated status row with a core-animated spinner and elapsed time; the main loop repaints while any visible panel is busy. Streaming turns append a cursor to the last rendered line. - New Activity text-panel block kind for muted tool/progress timelines. - User messages render with an accent bar and a turn-separator rule instead of a label; composer divider hints deduplicated; markdown headings use a glyph distinct from the agent label. - agent:completed now carries elapsed_ms measured from prompt dispatch. Plugin: - agent.hk drives one turn-state machine (waiting/thinking/tool/ streaming/stopping) with a single status renderer, so queue depth and streaming state survive every event; ACP updates map to human labels. - Tool calls build an in-conversation activity timeline updated in place, with thought chunks shown while they stream; on completion the timeline collapses to a one-line summary with step count and duration. - Wider default panel (62) and a hint-bearing empty state. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
fcoury
added a commit
that referenced
this pull request
Jul 19, 2026
The agent conversation pane currently reduces long-running work to transient composer text. That makes it difficult to tell whether the agent is waiting, thinking, using a tool, or streaming a response, and follow-up queue counts can be overwritten by later activity events. This change makes turn progress persistent and readable: - adds a dedicated text-panel status row with an animated spinner, elapsed time, streaming cursor, and stable queued-prompt count - renders thought and tool activity inline during a turn, then collapses completed activity into a step-count and duration summary - carries per-turn elapsed time from the editor into agent completion events - refreshes the conversation layout with clearer user accents, turn separators, a wider default pane, and a more useful empty state - adds coverage for panel rendering, plugin dispatch, lifecycle resets, and streaming status transitions ## How to Test 1. Open the Agent pane with `Space A` and submit a prompt that invokes one or more tools. Confirm the status moves through human-readable phases, the spinner and elapsed time update, tool activity appears inline, and the streamed answer shows a cursor. 2. Let the turn finish. Confirm the activity timeline collapses to a summary with the step count and elapsed duration, and the busy status clears. 3. Queue a follow-up while a turn is running. Confirm the queued count remains visible across phase changes and the queued prompt starts after completion. 4. Cancel a running turn with `Ctrl-C`, then clear or start a new conversation. Confirm no stale spinner, streaming cursor, or activity rows remain. Automated validation: - `cargo clippy --all-targets --all-features -- -D warnings` - `cargo test --all-features`
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The agent conversation pane currently reduces long-running work to transient composer text. That makes it difficult to tell whether the agent is waiting, thinking, using a tool, or streaming a response, and follow-up queue counts can be overwritten by later activity events.
This change makes turn progress persistent and readable:
How to Test
Space Aand submit a prompt that invokes one or more tools. Confirm the status moves through human-readable phases, the spinner and elapsed time update, tool activity appears inline, and the streamed answer shows a cursor.Ctrl-C, then clear or start a new conversation. Confirm no stale spinner, streaming cursor, or activity rows remain.Automated validation:
cargo clippy --all-targets --all-features -- -D warningscargo test --all-features