Repository navigation
fix(mobile): remove the dead space around the chat composer - #29224
Conversation
The Tools toggle floats over the transcript and shows only when the chat has tool calls; the composer is one row (attach, message, mic, send) until focused or drafted; Stop takes Send's slot while there is nothing to send; the bridge lane's working dots move to the transcript's tail.
|
The phone chat left a full row around Tools and a second message-box row while empty, reducing space for the conversation. This change makes the empty composer one row, expands controls while editing, puts Stop in Send's place while the agent works, and keeps Tools as a pill floating over chats with tool calls. Status: review loop done on
Intended: Tools stays as a floating pill rather than being removed (removing it would drop a feature). |
…omposer-dead-space # Conflicts: # mobile/src/session/MobileNativeChatView.test.ts
|
Important Review skippedReview was skipped as selected files did not have any reviewable changes. ⚙️ Run configuration
You can disable this status message by setting the Use the checkbox below for a quick retry:
📝 Walkthrough
Priority: ➖ Normal Merge Risk: ⚪ Minimal · up to
|
…h keeps it expanded
There was a problem hiding this comment.
🧹 Nitpick comments: 1
mobile/src/session/MobileNativeChatView.render-stubs.test-fixture.ts: 1
48-52: 🎯 Functional Correctness | 🔵 Trivial | ⚡ Quick winAlign both composer mocks with the real Send/Stop slot.
When
stopis present, the real composer renders Stop instead of Send. Both mocks currently expose both controls. The cited Stop tests only assert that Stop exists, so this mismatch can hide an incorrect slot implementation.Suggested mock updates
- { ...props, accessibilityLabel: 'Send message', onPress: () => props.onSend('hi') }, + props.stop + ? { ...props } + : { ...props, accessibilityLabel: 'Send message', onPress: () => props.onSend('hi') },Apply the same conditional props object to
mobile/src/session/MobileNativeChatView.turn-status.test.ts.
ℹ️ Review info
⚙️ Run configuration
- Configuration used: Repository UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
a3923c02-9503-423f-a9f2-d036488fe979
📒 Files selected for processing: 13
mobile/src/session/MobileNativeChatComposer.test.tsmobile/src/session/MobileNativeChatComposer.tsxmobile/src/session/MobileNativeChatFloatingControls.tsxmobile/src/session/MobileNativeChatSessionOptionPickers.test.tsmobile/src/session/MobileNativeChatSessionOptionPickers.tsxmobile/src/session/MobileNativeChatStopButton.tsxmobile/src/session/MobileNativeChatView.render-stubs.test-fixture.tsmobile/src/session/MobileNativeChatView.tail-follow.test.tsmobile/src/session/MobileNativeChatView.tsxmobile/src/session/MobileNativeChatView.turn-status.test.tsmobile/src/session/mobile-native-chat-composer-layout.tsmobile/src/session/mobile-native-chat-composer-styles.tsmobile/src/session/mobile-native-chat-view-styles.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 0 remain after this review.
…omposer-dead-space
ELI5
The phone chat gave a full row to a small Tools button and kept a second message-box row open even when empty. This change returns that space to the conversation: the empty message box uses one row, its controls expand while editing, and Tools floats over the conversation when tool calls exist.
What Changed
The queued-message tray, prompt cards, errors, autocomplete, microphone behavior, and keyboard lift keep their existing behavior.
Why
The common pattern uses a stable message field, one owner for a picker presentation, and floating activity controls with matching space in the conversation. Sharing the primary action lets phone users stop work or send a follow-up without a permanent extra row. Shrinking the old Tools row would retain the empty space; removing its action would remove existing functionality.
Intended differences: drafts and attachments keep the full composer expanded as approved; the global Tools toggle remains available; upload and dictation editing retain existing action precedence. These are local presentation changes with no saved-data or wire changes.
Linked Issue
Reported in the Orca community Discord as part of the phone-polish work. The landscape-tabs change is tracked separately in #29070.
Visual Proof
Re-shot on head
555fe0598adon an iPhone 17 Pro, against origin/main, with a local fixture and no paired desktop. PASS.555fe0598ad)Measured: idle after is one composer row, the message field plus Send, with no Tools row and no picker row. Focused after adds the Ask and model row. Working after puts Stop in Send's slot (the control's name is "Stop the agent") and floats "Agent is working"; before leaves the send arrow in place and puts a separate Stop label above the composer. Tools after is a floating "Tools · 1" pill; before is a Tools row inside the composer.
Testing
Rendered tests cover stable field identity, compact and expanded layouts, retained drafts, picker navigation and close completion, command-opened picker consumption, pending-send drafts with Stop still available, and a single floating working indicator with list clearance. On Windows, all four targeted mobile test files passed: 86 tests total. The normal precommit hook passed with only formatting changes. A follow-up corrects the test query typing; its 12 targeted tests and normal precommit hook passed. The full PR workflow (run 38824173552) and Mobile Checks (run 38824173408) are queued on
0f00efa72e2360fef87d4b00f57520434521aeeb; their success is not yet verified. Simulator checks remain blocked as described above.AI Disclosure
Review
Two independent source-review rounds and a bounded architecture decision completed. Review corrections preserve nested picker keyboard restoration, give command-opened pickers the same expansion lifetime without reopening the keyboard, keep working feedback visible while reading history, preserve Stop during a pending send with a retained new draft, and make passive activity pass touches to the transcript. Broader upload action policy, result-only Tools history, and native focus timing remain deferred or subject to device QA. This PR remains draft until real simulator QA and required CI complete.
Agent skill upstream boundary
Notes
Phone-only presentation change for iOS and Android; no desktop, transport, remote-host execution, or persisted-data changes. Real iOS keyboard timing and touch transitions require simulator evidence; Android runtime validation is separate.
Checklist