Skip to content

refactor(shared): group native-chat stream and provider rules - #33150

Merged
nwparker merged 1 commit into
mainfrom
nwparker/module-organization-shared-native-chat-rules
Oct 24, 2026
Merged

nwparker merged 1 commit into
mainfrom
nwparker/module-organization-shared-native-chat-rules

Conversation

@nwparker

@nwparker nwparker commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 13 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​17 $\color{#cf222e}{\Huge{\mathbf{−}}}$​16 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​1
Prod 34 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​53 $\color{#cf222e}{\Huge{\mathbf{−}}}$​50 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​3

Move seven shared native-chat rule modules and four existing suites into src/shared/native-chat/, and retarget their desktop, host, and mobile callers. Preserve the implementation bodies, wire names, test registration, and timing values; import the moved test type from its concrete owner.

Validation: 243 desktop and 370 mobile cases match pristine-base results; full application and mobile typechecks, mobile test typecheck ratchet, changed-code quality, formatting, and normal commit hooks pass. Direct mobile test typecheck reports the same 538 diagnostics on both pristine base and this commit (byte-identical output; no new diagnostics). Independent source audits and CI are required before merge.

@coderabbitai

coderabbitai Bot commented Oct 24, 2026

Copy link
Copy Markdown
Contributor

Review in Change Stack →

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: 9f227d04-cec9-4429-ad7b-2599247fa66d
Commits

Reviewing files that changed from the base of the PR and between 9a8ede3 and b1e38b5.

Files selected for processing: 47
  • config/scripts/ci-shard-timings.json
  • mobile/src/session/mobile-native-chat-render-data.ts
  • mobile/src/session/mobile-native-chat-reply-reveals.ts
  • mobile/src/session/mobile-native-chat-streaming-gate.ts
  • mobile/src/session/use-mobile-native-chat-session.ts
  • mobile/src/session/use-mobile-native-chat-turn-disclosure.ts
  • mobile/src/transport/rpc-client-terminal-subscription.ts
  • src/main/claude/claude-usage-limits.test.ts
  • src/main/codex/codex-structured-journal-generic-frames.ts
  • src/main/native-chat/agent-session-wire/structured-agent-session-crash-turn-end.test.ts
  • src/main/native-chat/agent-session-wire/structured-agent-session-host-mutations.ts
  • src/main/native-chat/agent-session-wire/structured-agent-session-interrupted-continuation.test.ts
  • src/main/native-chat/agent-session-wire/structured-agent-session-interrupted-continuation.ts
  • src/main/native-chat/agent-session-wire/structured-agent-session-orca-stop-row-readers.test.ts
  • src/main/native-chat/agent-session-wire/structured-agent-session-orca-stop-row.ts
  • src/main/native-chat/agent-session-wire/structured-agent-session-shutdown-cut-row.test.ts
  • src/main/native-chat/agent-session-wire/unhandled-provider-frame.ts
  • src/main/persistence/applying-settings/settings-update.ts
  • src/renderer/src/components/native-chat/NativeChatInterruptedContinue.tsx
  • src/renderer/src/components/native-chat/NativeChatResolvedView.tsx
  • src/renderer/src/components/native-chat/NativeChatTranscriptChrome.tsx
  • src/renderer/src/components/native-chat/native-chat-message-grouping.test.ts
  • src/renderer/src/components/native-chat/native-chat-session-assembler.ts
  • src/renderer/src/components/native-chat/use-native-chat-availability-notice.ts
  • src/renderer/src/components/settings/NativeChatProvidersSetting.tsx
  • src/renderer/src/components/settings/agent-availability-settings.test.ts
  • src/renderer/src/components/settings/native-chat-provider-choice.ts
  • src/renderer/src/lib/new-tab-agent-menu-rows.ts
  • src/renderer/src/web/preload-api/web-native-chat-api.ts
  • src/shared/native-chat-row-content.ts
  • src/shared/native-chat-stopped-before-start.ts
  • src/shared/native-chat-tool-fold.ts
  • src/shared/native-chat-transcript-contracts.test.ts
  • src/shared/native-chat-turn-membership.ts
  • src/shared/native-chat/native-chat-orca-stop-cut.test.ts
  • src/shared/native-chat/native-chat-orca-stop-cut.ts
  • src/shared/native-chat/native-chat-provider-frame-summary.test.ts
  • src/shared/native-chat/native-chat-provider-frame-summary.ts
  • src/shared/native-chat/native-chat-providers.ts
  • src/shared/native-chat/native-chat-send-order.ts
  • src/shared/native-chat/native-chat-stream-unsubscribe.test.ts
  • src/shared/native-chat/native-chat-stream-unsubscribe.ts
  • src/shared/native-chat/native-chat-streaming.spec.ts
  • src/shared/native-chat/native-chat-streaming.ts
  • src/shared/native-chat/native-chat-usage-limit-cut.ts
  • src/shared/structured-agent-session-latest-request.test.ts
  • src/shared/structured-native-chat-launch-route.ts

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

Walkthrough

Import paths across the native chat code now point to modules in the native-chat subdirectory. The changes also update three CI timing keys to include that directory. The recorded timing values remain unchanged. The summaries report no runtime logic changes.

Priority: Low

Merge Risk: Minimal · up to b1e38

No actionable merge-blocking risk was found in the relocation changes.

Pre-merge checks: Passed 3 · Failed 2

Failed Failed checks: 2 warnings

Check name Status Explanation Resolution
Description check Warning The description explains the file moves, caller updates, preservation goals, and validation results. It omits required template sections, including an issue link, visual proof or an explicit N/A state… Add the missing template sections. Include a valid issue link after “Fixes #”, state “N/A” with a reason under Visual Proof because this is a refactor, complete Testing and Checklist items, address the Notes requirements, and complete or ex…
Docstring Coverage Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 1 functions across 43 files. (1 skipped: 1… Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 3 passed
Check name Status Explanation
Title check Passed The title clearly describes the main change: grouping native-chat stream and provider rule modules.
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: Description check

Explanation

The description explains the file moves, caller updates, preservation goals, and validation results. It omits required template sections, including an issue link, visual proof or an explicit N/A statement, checklist confirmations, review notes, and AI disclosure details where applicable.

Resolution

Add the missing template sections. Include a valid issue link after “Fixes #”, state “N/A” with a reason under Visual Proof because this is a refactor, complete Testing and Checklist items, address the Notes requirements, and complete or explicitly omit AI Disclosure according to contributor status.

Full details: Docstring Coverage

Explanation

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

Resolution

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

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.

@nwparker
nwparker merged commit 7d0b3f9 into main Oct 24, 2026
90 of 95 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