Repository navigation
Add persistent turn-scoped chat activity indicator - #19044
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Team Run ID: 📒 Files selected for processing (4)
Included review availability: Your plan provides up to 10 included reviews per hour; 6 remain after this review. 📝 WalkthroughWalkthroughNative chat now selects description activity from the active turn and exposes it through the session hook. The message list renders the activity line while the session is working, using the activity text or a translated “Working…” fallback. Tool activity labels use shared translation logic. Settled tool rows remain static. Tests cover activity selection, fallback behavior, reduced-motion spinners, animation states, and removal of indicators when the session becomes ready. Merge Risk: ⚪ Minimal · up to Native chat now shows a persistent activity line during active turns, with provider status text when available and a Working… fallback otherwise. Completed tool rows remain static and activity clears when the turn settles; no merge-blocking risk is identified. 🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
Full details: Description checkExplanation The description explains the implementation, rationale, testing, and visual behavior, but it does not follow the repository template. It omits the required linked issue and several required sections and checklist confirmations. Resolution Add the required ELI5, What Changed, Why, Linked Issue with a valid Fixes # reference, Testing checklist and platform details, AI Disclosure, Review, Agent skill upstream boundary, Notes, and Checklist sections. Confirm the required validation commands and cross-platform considerations.
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Important
The new translate() key components.native-chat.activity.continuingAfter is missing from src/renderer/src/i18n/locales/en.json. verify:localization-catalog (run in .github/workflows/pr.yml) fails on it — I confirmed by running the verifier locally. Run pnpm run sync:localization-catalog and commit the generated en.json entry before merging.
Reviewed changes
- Turn activity selection —
selectStructuredAgentTurnActivityprefers the latest provider-authored status line, else restates the latest tool (or diff), else returnsnull. - Tail activity line — new
NativeChatTurnActivityLinerenders a reduced-motion-gatedLoader2spinner plus a static label, wired intoNativeChatMessageListonly undershowTurnStatus && isWorking. - Label extraction —
activeToolLabelis lifted out ofNativeChatToolRuninto the sharednativeChatToolActivityLabel, reused by both the tool row and the tail. - Tests — new unit tests for selection, message-list rendering, reduced-motion safety, and settled-tool animation.
ℹ️ Nitpicks
- The
diffbranch inselectStructuredAgentTurnActivity(native-chat-turn-activity.ts) is untested and synthesizes a tool-call with nostate, so it always renders the "Continuing after …" form; a small unit test would pin that branch.
DeepSeek Pro (free via Pullfrog for OSS) | 𝕏
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
- Removed the tool-derived tail —
NativeChatTurnActivityis now a singledescriptionvariant andselectStructuredAgentTurnActivityno longer restates the latest tool or diff, so the tail never derives copy from a tool name or command. - Simplified the tail label —
NativeChatTurnActivityLinerendersactivity?.textwith theWorking…fallback, dropping thecompletedToolActivityLabel/continuingAfterpath (which resolves the missing-i18n-key CI failure). - Updated tests — selector and message-list tests now assert the broad fallback stays distinct from running and settled tool rows.
Both prior findings are addressed: the continuingAfter key was removed entirely, and the tail can no longer misstate a failed tool call.
DeepSeek Pro (free via Pullfrog for OSS) | 𝕏
* feat(chat): show turn-scoped activity tail * fix(chat): keep turn activity broad --------- Co-authored-by: Merge Sim <sim@local>

Summary
Loader2spinner with static activity text and reduced-motion gatingWorking…fallback; the tail never derives copy from a tool name or commandProvider measurements
I live-tested real structured no-tool turns in both providers to measure the activity status that survives Orca's provider-frame filtering and reaches the journal:
Codex is working…, revision 1) and no usable non-lifecycle activity status during the gap, so the tail displays the approved spinner +Working…fallback.Claude is working…, revision 1) and no usable non-lifecycle activity status during the gap, so the tail likewise displays spinner +Working….Both providers do send richer underlying progress traffic. Orca currently classifies relevant Codex progress/reasoning frames and Claude status/tool/task-progress frames as status chrome or streams them into existing items before the structured journal is built, so no provider-authored activity status reaches
AgentJournalStatusItemtoday. Deriving richer broad activity copy from that traffic is possible follow-up work; this change deliberately usesWorking…until such a status reaches the journal.Validation
npx oxlinton all corrective pathspnpm tc:webVisual proof
Codex — genuine no-tool gap (fallback)
A real Codex prose-only turn with no tool calls. No provider-authored activity status reaches the journal, so the tail shows the broad fallback: a spinning
Loader2plus staticWorking…text; CDP measuredspinon the glyph andnoneon the label.Claude — genuine no-tool gap (fallback)
A real Claude prose-only turn with no tool calls. No provider-authored activity status reaches the journal, so the tail visibly uses spinner +
Working…; CDP measured the glyph spinning and the label static.Running tool and tail together
During a real Codex
sleep 20tool call, the specific tool row and broad tail are two distinct lines:Running /bin/zsh -lc 'sleep 20'pulses above a separate spinner +Working…tail. CDP measuredpulseon the tool label,spinon the tail glyph, andnoneon the tail text; the specificRunning …copy appeared only once.Completed tool remains static
After the command completed, its row settled with a check and zero animated descendants while the turn-scoped tail continued below it as the broad spinner +
Working…state. The tail contains no tool name or command string.Turn finished
When the real turn settled, the tool activity row and tail disappeared. CDP found no remaining turn activity line, running tool row, or visible turn-scoped
aria-liverow.Reduced motion
With
prefers-reduced-motion: reduceemulated during a live tool call, the specificRunning …row and separate broadWorking…tail remained visible while CDP measuredanimation-name: nonefor both the tool pulse and tail spinner.