Skip to content

fix(mobile): one Working line in every chat; drop the floating 'Agent is working' pill - #29972

Merged
brennanb2025 merged 1 commit into
mainfrom
brennanb2025/mobile-chat-one-working-line
Oct 17, 2026
Merged

brennanb2025 merged 1 commit into
mainfrom
brennanb2025/mobile-chat-one-working-line

Conversation

@brennanb2025

@brennanb2025 brennanb2025 commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 10 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​3 $\color{#cf222e}{\Huge{\mathbf{−}}}$​45 $\color{#cf222e}{\Huge{\mathbf{−}}}$​42
Prod 6 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​6 $\color{#cf222e}{\Huge{\mathbf{−}}}$​89 $\color{#cf222e}{\Huge{\mathbf{−}}}$​83

ELI5

On the phone, a chat over an agent running in a terminal showed a floating "Agent is working ●●●" bubble over the messages, while every other chat shows a quiet "Working…" line with a spinner at the end of the conversation. Now every chat shows the same "Working…" line, and the floating bubble is gone.

What Changed

  • Before: chats backed by a terminal agent (the ones without per-turn status rows) drew a floating "Agent is working" pill over the bottom of the transcript while the agent worked. Structured chats drew "Working…" with a spinner as the last line of the transcript, and never the pill.
  • After: terminal-backed chats draw that same "Working…" line at the end of the transcript. Nothing floats over the messages. Terminal Stop keeps its existing behavior: the line remains "Working…" until the host reports that work ended. Structured chats retain their existing "Stopping…" line after Stop. They still get no per-turn rows and no "Worked for N" summary, because the host doesn't record turns for them.
  • Mechanism: the transcript's live line comes from useMobileNativeChatTurnDisclosure. It used to draw only for structured chats; now it also draws for terminal-backed chats while the agent works and no question or permission prompt is waiting. MobileAgentWorkingIndicator and its pill style are deleted, and the floating controls only hold the Tools pill and jump-to-latest.

Why

Brennan asked for this as a follow-up to #29224 (which moved the composer's Stop into Send's place): two different working indicators for the same state was one too many, and the floating one covered messages. Reusing the existing line, rather than adding a new indicator, keeps one look for "the agent is working" across every chat. The line deliberately has no elapsed-time clock: in structured chats the clock lives in the turn's status row, which terminal-backed chats don't have.

Linked Issue

No GitHub issue. Follow-up from Brennan's review of #29224 (Orca community Discord feedback, "For mobile app when phone is turned").

Visual Proof

Component-level simulator QA with fixture data rendering the real chat view; a live paired-agent flow was not exercised (not run, not a known defect). Android runtime was not tested. Remote cleanup remains unverified after the M4Air connection dropped.

Measured on an iPhone 17 Pro simulator running iOS 26.5 at accessibility-extra-large text, in portrait plus one landscape shot: every after shot matched. Terminal working shows Working… and no floating pill; ask, permission, and question cards, including collapsed strips, hide that line; Stop leaves Working…; terminal chats show no Worked for row; structured working stays Working… and structured stopping stays Stopping…; the Tools pill toggles and jump-to-latest appears when scrolled up.

Check Before (origin/main) After (27db695)
Terminal chat, agent working, portrait before after
Terminal chat, agent working, landscape before after
Pending ask card before after
Ask card collapsed before after
Pending permission card before after
Permission card collapsed before after
Pending question card before after
Question card collapsed before after
After Stop, agentWorking still true before after
Structured chat working before after
Structured chat stopping before after
Tools pill at the tail before tools after tools
Tools pill expanded before toggled to Tools · 3 after expanded
Scrolled up: jump-to-latest before jump after jump

Testing

  • Updated the bridge-lane test in MobileNativeChatView.turn-status.test.ts to pin the new behavior (the live line draws, with no turn status, and the list no longer reserves room for a floating pill). Removed test mocks of the deleted component.
  • I manually tested these changes locally
  • Automated tests added/updated, or explained why not below

Review

Completed source, architecture, user-visible behavior and readiness passes on 27db695301ac016c49ed64bc06daf1edb103a4c9, with no open code findings or review code changes. Corrected the unsupported terminal “Stopping…” claim: terminal Stop keeps its existing Working-until-host-end behavior. Full PR Checks (including aggregate verify) and Mobile Checks passed on this exact head. Simulator fixture scenarios passed; live paired-agent verification and remote cleanup confirmation remain outside the verified evidence.

Agent skill upstream boundary

  • Not applicable, or this change copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

Notes

Mobile only. No desktop, SSH, wire or saved-data change.

Checklist

  • This PR is small and focused
  • I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
  • Before/after component-level simulator screenshots attached for UI changes
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
  • Full PR Checks and Mobile Checks passed on the current head; no local lint/typecheck/build run on the shared Mac

@brennanb2025
brennanb2025 marked this pull request as ready for review October 17, 2026 04:47
@coderabbitai

coderabbitai Bot commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: d2019cdc-f2a3-49f4-b000-42af84f4dc4e
📥 Commits

Reviewing files that changed from the base of the PR and between 1ed735b and 27db695.

📒 Files selected for processing: 16
  • mobile/src/session/MobileAgentWorkingIndicator.tsx
  • mobile/src/session/MobileNativeChatFloatingControls.tsx
  • mobile/src/session/MobileNativeChatView.composer-lock.test.ts
  • mobile/src/session/MobileNativeChatView.failure-banner.test.ts
  • mobile/src/session/MobileNativeChatView.history-paging.test.ts
  • mobile/src/session/MobileNativeChatView.prompt-presentation.test.ts
  • mobile/src/session/MobileNativeChatView.rows.test.ts
  • mobile/src/session/MobileNativeChatView.stop.test.ts
  • mobile/src/session/MobileNativeChatView.tail-follow.test.ts
  • mobile/src/session/MobileNativeChatView.tsx
  • mobile/src/session/MobileNativeChatView.turn-status.test.ts
  • mobile/src/session/MobileNativeChatView.waiting-rows.test.ts
  • mobile/src/session/__mocks__/mobile-prompt-controller.ts
  • mobile/src/session/mobile-native-chat-merged-snapshot-parity-hooks.test.tsx
  • mobile/src/session/mobile-native-chat-view-styles.ts
  • mobile/src/session/use-mobile-native-chat-turn-disclosure.ts
💤 Files with no reviewable changes: 13
  • mobile/src/session/mocks/mobile-prompt-controller.ts
  • mobile/src/session/MobileNativeChatView.composer-lock.test.ts
  • mobile/src/session/MobileNativeChatView.tail-follow.test.ts
  • mobile/src/session/MobileNativeChatView.rows.test.ts
  • mobile/src/session/MobileAgentWorkingIndicator.tsx
  • mobile/src/session/MobileNativeChatView.waiting-rows.test.ts
  • mobile/src/session/MobileNativeChatView.stop.test.ts
  • mobile/src/session/mobile-native-chat-merged-snapshot-parity-hooks.test.tsx
  • mobile/src/session/MobileNativeChatView.prompt-presentation.test.ts
  • mobile/src/session/mobile-native-chat-view-styles.ts
  • mobile/src/session/MobileNativeChatView.history-paging.test.ts
  • mobile/src/session/MobileNativeChatView.failure-banner.test.ts
  • mobile/src/session/MobileNativeChatFloatingControls.tsx

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 5 remain after this review.

📝 Walkthrough

The mobile chat view removes the floating three-dot working indicator. Bridge-lane chats instead use the live “Working…” line when the agent is working and the line is not yielded. Active asks, permissions, or questions yield the live line, regardless of structuredActivityUi. Floating controls no longer receive bridge-working state, and list spacing depends on tool calls. Related tests and mocks were updated.

Priority: ⬇️ Low

Merge Risk: ⚪ Minimal · up to 27db6

Bridge-lane chats now show the transcript’s live working line instead of the floating pill, while structured chats retain their existing disclosure behavior. No concrete user-impacting regression is identified; simulator QA and automated checks are not confirmed.

Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 75.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 4 functions across 3 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 4 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 and concisely describes the main mobile change: use one Working line and remove the floating Agent is working pill.
Description check Passed The description is detailed and covers the user-visible behavior, mechanism, rationale, visual proof, testing updates, scope, and review status. It does not provide an actual linked issue, and manual …
Full details: Description check

Explanation

The description is detailed and covers the user-visible behavior, mechanism, rationale, visual proof, testing updates, scope, and review status. It does not provide an actual linked issue, and manual testing plus local lint, typecheck, test, and build results remain unconfirmed.

  • Fix all pre-merge checks with AI
✨ Finishing Touches: 💡 1
📝 Generate docstrings: 💡
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

@brennanb2025

Copy link
Copy Markdown
Contributor Author

Terminal-backed phone chats covered messages with a floating “Agent is working” pill while structured chats used a transcript activity line. This PR reuses the existing “Working…” line at the end of the transcript for terminal chats and deletes the floating pill.

Source, architecture, user-visible behavior and readiness review completed on 27db695301ac016c49ed64bc06daf1edb103a4c9, with no open code findings. Corrected the PR description: terminal Stop keeps “Working…” until host status ends, preserving its previous behavior; structured chats retain “Stopping…”. No code changes were needed during review. The elapsed clock remains confined to structured turn rows; none is added to terminal chats.

Verified in code: pending ask/question/permission values suppress the new line, including collapsed prompts; terminal turn summaries remain disabled; Tools and jump-to-latest remain; no imports of the deleted component remain. Exact-head PR Checks, including the aggregate gate, and Mobile Checks passed. Mobile CI reports 10,321 tests passed plus 486 bridged-contract tests, including the targeted turn-status and Stop suites.

QA scope: component-level simulator QA with fixture data, rendering the real chat view on an iPhone 17 Pro / iOS 26.5 with accessibility-extra-large text, portrait and landscape. The coordinator reports all pictured scenarios passed; I independently inspected the terminal Working before/after pair and terminal/structured Stop captures. The live paired-agent flow was not exercised: not run, not a known defect. Android runtime was not tested. Remote QA cleanup remains unverified after the M4Air connection dropped; the coordinator owns that follow-up.

Deferred: live paired-agent verification, Android runtime coverage and remote cleanup confirmation. There are no deferred code defects from this review.

For Brennan’s review

These are main-versus-branch component scenarios using the same fixture inputs:

Check Before (origin/main) After (27db695)
Terminal chat, agent working, portrait before after
Terminal chat, agent working, landscape before after
Pending ask card before after
Ask card collapsed before after
Pending permission card before after
Permission card collapsed before after
Pending question card before after
Question card collapsed before after
After Stop, agentWorking still true before after
Structured chat working before after
Structured chat stopping before after
Tools pill at the tail before tools after tools
Tools pill expanded before toggled to Tools · 3 after expanded
Scrolled up: jump-to-latest before jump after jump

The two behavior choices worth inspecting are terminal activity without turn accounting and pending prompts replacing the line.

@brennanb2025
brennanb2025 merged commit f4aa828 into main Oct 17, 2026
41 checks passed
@brennanb2025
brennanb2025 deleted the brennanb2025/mobile-chat-one-working-line branch October 17, 2026 08:17
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