Skip to content

refactor(mobile): group native chat options and queued editing - #34074

Merged
nwparker merged 2 commits into
mainfrom
nwparker/refactor-mobile-chat-options-pr67
Oct 26, 2026
Merged

nwparker merged 2 commits into
mainfrom
nwparker/refactor-mobile-chat-options-pr67

Conversation

@nwparker

@nwparker nwparker commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 13 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​37 $\color{#cf222e}{\Huge{\mathbf{−}}}$​26 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​11
Prod 24 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​80 $\color{#cf222e}{\Huge{\mathbf{−}}}$​75 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​5

Native chat session options and queued-message editing are spread across the flat mobile session directory. Group the complete 19-file unit under session/native-chat/input/ and update its consumers, mocks, RPC adapter load path, and pilot-scenario source references.

Remove the test-reset forwarding export and import its concrete owner in both consumers. Import catalog types directly from their defining module. Component bodies, hooks, state ownership, transport behavior and native/web behavior remain unchanged.

Validation: the same 21 existing mobile test files pass all 248 cases before and after the move, with identical case-name/status multisets after path normalization. Mobile source/test typechecks, the test-type ratchet, whitespace checks and all 11 selected repository changed-file checks pass. Independent refactor audits, feature-contact review and required CI remain pending.

The full 19-action scope is retained. No barrels, forwarding modules, compatibility aliases, or planning documents are added. Detailed evidence and tracker updates remain local.

@coderabbitai

coderabbitai Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 2 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 10 included reviews currently available.

Learn how review limits work.

Review configuration:

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 4e625028-1f4b-4d33-ab76-d021851359a0
Commits

Reviewing files that changed from the base of the PR and between c1d3c32 and 09db96b.

Files selected for processing: 37
  • mobile/rpc-foundation/pilot-scenarios.json
  • mobile/src/session/MobileNativeChatOverlay.test.ts
  • mobile/src/session/MobileNativeChatView.prompt-presentation.test.ts
  • mobile/src/session/MobileNativeChatView.render-stubs.test-fixture.ts
  • mobile/src/session/MobileNativeChatView.streaming-rows.test.ts
  • mobile/src/session/MobileNativeChatView.tsx
  • mobile/src/session/MobileNativeChatView.turn-status.test.ts
  • mobile/src/session/MobileQueuedCardText.tsx
  • mobile/src/session/MobileQueuedMessageCardRow.tsx
  • mobile/src/session/__mocks__/mobile-prompt-controller.ts
  • mobile/src/session/mobile-native-chat-controller-contract.ts
  • mobile/src/session/mobile-native-chat-merged-snapshot-parity-hooks.test.tsx
  • mobile/src/session/native-chat/composer/MobileNativeChatComposer.tsx
  • mobile/src/session/native-chat/composer/use-mobile-native-chat-composer-tray.ts
  • mobile/src/session/native-chat/input/MobileNativeChatQueuedMessageEditor.tsx
  • mobile/src/session/native-chat/input/MobileNativeChatQueuedMessages.test.tsx
  • mobile/src/session/native-chat/input/MobileNativeChatQueuedMessages.tsx
  • mobile/src/session/native-chat/input/MobileNativeChatSessionOptionPickers.test.ts
  • mobile/src/session/native-chat/input/MobileNativeChatSessionOptionPickers.tsx
  • mobile/src/session/native-chat/input/MobileNativeChatSessionOptionRows.test.ts
  • mobile/src/session/native-chat/input/MobileNativeChatSessionOptionRows.tsx
  • mobile/src/session/native-chat/input/MobileNativeChatSessionOptionSegments.tsx
  • mobile/src/session/native-chat/input/MobileNativeChatStopButton.tsx
  • mobile/src/session/native-chat/input/mobile-native-chat-queued-message-styles.ts
  • mobile/src/session/native-chat/input/mobile-native-chat-session-option-labels.ts
  • mobile/src/session/native-chat/input/mobile-native-chat-session-option-persistence.test.ts
  • mobile/src/session/native-chat/input/mobile-native-chat-session-option-persistence.ts
  • mobile/src/session/native-chat/input/use-mobile-native-chat-queued-edit-focus.test.tsx
  • mobile/src/session/native-chat/input/use-mobile-native-chat-queued-edit-focus.ts
  • mobile/src/session/native-chat/input/use-mobile-native-chat-session-option-controller.test.ts
  • mobile/src/session/native-chat/input/use-mobile-native-chat-session-option-controller.ts
  • mobile/src/session/native-chat/input/use-mobile-native-chat-session-options.test.ts
  • mobile/src/session/native-chat/input/use-mobile-native-chat-session-options.ts
  • mobile/src/session/use-mobile-native-chat-controller.ts
  • mobile/src/session/use-mobile-omp-model-discovery.test.ts
  • mobile/src/session/use-mobile-structured-agent-options.ts
  • mobile/src/test-support/rpc-recording/adapters/native-chat-write-mount-adapters.ts

No actionable comments were generated in the recent review.

Recent review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 18f8795b-e9f9-44fe-b0fd-4bd369ec5297
Commits

Reviewing files that changed from the base of the PR and between d58ab97 and c1d3c32.

Files selected for processing: 37
  • mobile/rpc-foundation/pilot-scenarios.json
  • mobile/src/session/MobileNativeChatOverlay.test.ts
  • mobile/src/session/MobileNativeChatView.prompt-presentation.test.ts
  • mobile/src/session/MobileNativeChatView.render-stubs.test-fixture.ts
  • mobile/src/session/MobileNativeChatView.streaming-rows.test.ts
  • mobile/src/session/MobileNativeChatView.tsx
  • mobile/src/session/MobileNativeChatView.turn-status.test.ts
  • mobile/src/session/MobileQueuedCardText.tsx
  • mobile/src/session/MobileQueuedMessageCardRow.tsx
  • mobile/src/session/__mocks__/mobile-prompt-controller.ts
  • mobile/src/session/mobile-native-chat-controller-contract.ts
  • mobile/src/session/mobile-native-chat-merged-snapshot-parity-hooks.test.tsx
  • mobile/src/session/native-chat/composer/MobileNativeChatComposer.tsx
  • mobile/src/session/native-chat/composer/use-mobile-native-chat-composer-tray.ts
  • mobile/src/session/native-chat/input/MobileNativeChatQueuedMessageEditor.tsx
  • mobile/src/session/native-chat/input/MobileNativeChatQueuedMessages.test.tsx
  • mobile/src/session/native-chat/input/MobileNativeChatQueuedMessages.tsx
  • mobile/src/session/native-chat/input/MobileNativeChatSessionOptionPickers.test.ts
  • mobile/src/session/native-chat/input/MobileNativeChatSessionOptionPickers.tsx
  • mobile/src/session/native-chat/input/MobileNativeChatSessionOptionRows.test.ts
  • mobile/src/session/native-chat/input/MobileNativeChatSessionOptionRows.tsx
  • mobile/src/session/native-chat/input/MobileNativeChatSessionOptionSegments.tsx
  • mobile/src/session/native-chat/input/MobileNativeChatStopButton.tsx
  • mobile/src/session/native-chat/input/mobile-native-chat-queued-message-styles.ts
  • mobile/src/session/native-chat/input/mobile-native-chat-session-option-labels.ts
  • mobile/src/session/native-chat/input/mobile-native-chat-session-option-persistence.test.ts
  • mobile/src/session/native-chat/input/mobile-native-chat-session-option-persistence.ts
  • mobile/src/session/native-chat/input/use-mobile-native-chat-queued-edit-focus.test.tsx
  • mobile/src/session/native-chat/input/use-mobile-native-chat-queued-edit-focus.ts
  • mobile/src/session/native-chat/input/use-mobile-native-chat-session-option-controller.test.ts
  • mobile/src/session/native-chat/input/use-mobile-native-chat-session-option-controller.ts
  • mobile/src/session/native-chat/input/use-mobile-native-chat-session-options.test.ts
  • mobile/src/session/native-chat/input/use-mobile-native-chat-session-options.ts
  • mobile/src/session/use-mobile-native-chat-controller.ts
  • mobile/src/session/use-mobile-omp-model-discovery.test.ts
  • mobile/src/session/use-mobile-structured-agent-options.ts
  • mobile/src/test-support/rpc-recording/adapters/native-chat-write-mount-adapters.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.

Walkthrough

Import paths now match the native-chat/input directory layout across native chat components, hooks, session consumers, tests, and RPC recording fixtures. The session-options hook also imports catalog types from a dedicated module and no longer re-exports a test helper. The summaries report no runtime logic changes.

Estimated code review effort

Priority: Low

Merge Risk: Minimal · previous review c1d3c

The native chat refactor presents no identified merge-blocking risk.

Pre-merge checks: Passed 3 · Failed 2

Failed Failed checks: 2 warnings

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 50.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 10 functions across 35 files. (1 skipped:… Write docstrings for the functions missing them to satisfy the coverage threshold.
Description check Warning The description explains the refactor scope, rationale, implementation details, and reported validation. However, it does not follow the required template and omits the required linked issue, explicit… Rewrite the description using all required template headings. Add an actual issue link after Fixes #. Add N/A with a reason under Visual Proof because there is no UI or interaction change. Complete or explicitly mark the Testing, AI Dis…
Passed Passed checks: 3 passed
Check name Status Explanation
Title check Passed The title clearly identifies the main change: grouping native chat options and queued editing in the mobile codebase.
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.
Full details: Docstring Coverage

Explanation

Docstring coverage is 50.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 10 functions across 35 files. (1 skipped: 1 unsupported.)

Resolution

Write docstrings for the functions missing them to satisfy the coverage threshold.

Full details: Description check

Explanation

The description explains the refactor scope, rationale, implementation details, and reported validation. However, it does not follow the required template and omits the required linked issue, explicit visual-proof statement, AI disclosure status, review details, notes, and checklist confirmations.

Resolution

Rewrite the description using all required template headings. Add an actual issue link after Fixes #. Add N/A with a reason under Visual Proof because there is no UI or interaction change. Complete or explicitly mark the Testing, AI Disclosure, Review, Agent skill upstream boundary, Notes, and Checklist sections. Update pending validation items when available.

Finishing Touches: 💡 2
📝 Generate docstrings: 💡
  • Commit to this branch
  • Create a new PR
🛠️ Fix failing CI checks: 💡
  • 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.

@nwparker
nwparker force-pushed the nwparker/refactor-mobile-chat-options-pr67 branch from c1d3c32 to 8a82911 Compare October 26, 2026 21:18
@nwparker
nwparker force-pushed the nwparker/refactor-mobile-chat-options-pr67 branch from 8a82911 to d4ce2f8 Compare October 26, 2026 22:24
@nwparker
nwparker merged commit 01fea97 into main Oct 26, 2026
24 checks passed
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