Skip to content

Add persistent turn-scoped chat activity indicator - #19044

Merged
brennanb2025 merged 2 commits into
mainfrom
brennanb2025/chatui-8b-working-activity-line
Sep 6, 2026
Merged

brennanb2025 merged 2 commits into
mainfrom
brennanb2025/chatui-8b-working-activity-line

Conversation

@brennanb2025

@brennanb2025 brennanb2025 commented Sep 6, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 3 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​275 0 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​275
Prod 7 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​100 $\color{#cf222e}{\Huge{\mathbf{−}}}$​14 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​86

Summary

  • add a persistent tail activity line for the full lifetime of a structured agent turn
  • use the existing Loader2 spinner with static activity text and reduced-motion gating
  • keep running tool rows pulsing, completed tool rows static with their check, and remove all turn activity when the turn settles
  • select tail copy from a provider-authored activity status when one reaches the structured journal, otherwise show the broad Working… fallback; the tail never derives copy from a tool name or command

Provider 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: sampled a real no-tool turn for more than 60 seconds. The journal contained one lifecycle status (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: sampled a real 81.8-second no-tool turn 316 times at roughly 250 ms intervals. The journal contained one lifecycle status (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 AgentJournalStatusItem today. Deriving richer broad activity copy from that traffic is possible follow-up work; this change deliberately uses Working… until such a status reaches the journal.

Validation

  • npx oxlint on all corrective paths
  • focused native-chat tests: 47 passed, including active- and settled-tool non-duplication regressions
  • pnpm tc:web
  • real Electron/CDP validation for running and completed tool states, turn settlement, and reduced motion; the unchanged no-tool provider captures were rechecked

Visual 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 Loader2 plus static Working… text; CDP measured spin on the glyph and none on the label.

Codex no-tool turn showing the spinner and Working fallback

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.

Claude no-tool turn showing the spinner and Working fallback

Running tool and tail together

During a real Codex sleep 20 tool 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 measured pulse on the tool label, spin on the tail glyph, and none on the tail text; the specific Running … copy appeared only once.

Specific running tool row above a distinct broad Working tail

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.

Completed tool row static with check above the broad Working tail

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-live row.

Finished turn with no turn-scoped activity animation

Reduced motion

With prefers-reduced-motion: reduce emulated during a live tool call, the specific Running … row and separate broad Working… tail remained visible while CDP measured animation-name: none for both the tool pulse and tail spinner.

Reduced-motion tool row above a distinct broad Working tail

@coderabbitai

coderabbitai Bot commented Sep 6, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Team

Run ID: 4aba6584-b3d1-4397-aafb-78662acbd8a7

📥 Commits

Reviewing files that changed from the base of the PR and between 25c28f5 and 5bcef5b.

📒 Files selected for processing (4)
  • src/renderer/src/components/native-chat/NativeChatMessageList.test.tsx
  • src/renderer/src/components/native-chat/NativeChatTurnActivityLine.tsx
  • src/renderer/src/components/native-chat/native-chat-turn-activity.test.ts
  • src/renderer/src/components/native-chat/native-chat-turn-activity.ts

Included review availability: Your plan provides up to 10 included reviews per hour; 6 remain after this review.


📝 Walkthrough

Walkthrough

Native 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 5bcef

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)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 22.22% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 9 functions across 10 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
Description check ⚠️ Warning 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 a… 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 validat…
✅ Passed checks (3 passed)
Check name Status Explanation
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The title clearly describes the main change: a persistent, turn-scoped chat activity indicator.
Full details: Description check

Explanation

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.

  • Fix all pre-merge checks with AI
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Create stacked PR
  • Commit on current branch

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 — selectStructuredAgentTurnActivity prefers the latest provider-authored status line, else restates the latest tool (or diff), else returns null.
  • Tail activity line — new NativeChatTurnActivityLine renders a reduced-motion-gated Loader2 spinner plus a static label, wired into NativeChatMessageList only under showTurnStatus && isWorking.
  • Label extraction — activeToolLabel is lifted out of NativeChatToolRun into the shared nativeChatToolActivityLabel, 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 diff branch in selectStructuredAgentTurnActivity (native-chat-turn-activity.ts) is untested and synthesizes a tool-call with no state, so it always renders the "Continuing after …" form; a small unit test would pin that branch.

Pullfrog  | Fix all ➔ | Fix 👍s ➔ | View workflow run | Using DeepSeek Pro (free via Pullfrog for OSS) | 𝕏

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No new issues found.

Reviewed changes

  • Removed the tool-derived tail — NativeChatTurnActivity is now a single description variant and selectStructuredAgentTurnActivity no longer restates the latest tool or diff, so the tail never derives copy from a tool name or command.
  • Simplified the tail label — NativeChatTurnActivityLine renders activity?.text with the Working… fallback, dropping the completedToolActivityLabel/continuingAfter path (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.

Pullfrog  | View workflow run | Using DeepSeek Pro (free via Pullfrog for OSS) | 𝕏

@brennanb2025
brennanb2025 merged commit 7ac194a into main Sep 6, 2026
27 checks passed
enrick-dev pushed a commit to enrick-dev/orca that referenced this pull request Oct 15, 2026
* feat(chat): show turn-scoped activity tail

* fix(chat): keep turn activity broad

---------

Co-authored-by: Merge Sim <sim@local>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant