feat(desktop): stable Slack-style status line in the composer activity bar - #4662
Open
TolgaCinisli wants to merge 2 commits into
Open
feat(desktop): stable Slack-style status line in the composer activity bar#4662TolgaCinisli wants to merge 2 commits into
TolgaCinisli wants to merge 2 commits into
Conversation
The inline bot activity bar rotated through the last 5 distinct transcript headlines every 2.2s, which read as flicker during long agent turns. Replace the rotation with one line that updates in place: Assistant · Bash: npm test · 2m 10s · 12 tools · ctx 118K/1M Current activity (running tool + clamped preview, or phase), ticking elapsed anchored to the agent working signal, per-turn tool count, and the latest usage reading. Popover and session panel are untouched. Signed-off-by: Tolga Cinisli <tolgacinisli@gmail.com>
…line Shell rows rendered the raw command text, so the composer bar showed noise like `sed -n '420,432p' src/…` instead of what the agent was doing. Claude Code (and other harnesses) send a human-authored `description` argument with every shell call — prefer it when present, falling back to the descriptor preview otherwise. The session panel still shows the full command; the bar is a status line, not a terminal. Signed-off-by: Tolga Cinisli <tolgacinisli@gmail.com>
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.
Summary
The inline bot activity bar rotated through the last 5 distinct transcript
headlines every 2.2s. During a long agent turn that reads as flicker — three or
four unrelated strings looping — and there is no way to tell how far along the
turn is.
Replace the rotation with one line that updates in place:
phase (Thinking / Planning / Responding) when no tool is in flight.
excluded.
Shell rows prefer the human-authored
descriptionargument over the rawcommand text. The bar is a status line, not a terminal —
sed -n '420,432p' src/…reads as noise there, while "Read the store cache" is the thing a personwants. The session panel still shows the full command.
The projection is a pure function in a new
botActivityStatus.ts; only theelapsed segment needs the component's clock. Popover and session panel are
untouched.
Related issue
None found — searched open issues and PRs for "activity bar" / "status line" /
"rotating".
Testing
botActivityStatus.test.mjs— 11 cases covering running-tool preference,phase fallback, turn/channel scoping, suppressed rows, usage parsing,
basename shortening, the idle shape, segment formatting, and the
description-over-command preference.
pnpm -C desktop test— 4052 passingpnpm -C desktop typecheck— cleanbiome checkon the touched files — cleanwith no flicker and the counters reset cleanly on the next turn.