Skip to content

refactor: organize native-chat input and transcript owners - #37334

Merged
nwparker merged 1 commit into
mainfrom
module-organization/native-chat-input-transcript38-m9b391880
Nov 2, 2026
Merged

nwparker merged 1 commit into
mainfrom
module-organization/native-chat-input-transcript38-m9b391880

Conversation

@nwparker

@nwparker nwparker commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

ELI5

Organize the remaining native-chat input and transcript files into folders that match their responsibilities. Chat behavior stays the same.

What Changed

Move 24 input owners and 14 transcript owners together with their desktop/mobile callers, mocks, fixtures, and test routing. The resulting change has 168 output files across 206 changed paths. Imports point directly to implementation owners; there are no barrel exports or old-path forwarding modules. Consolidate two duplicate imports exposed by the moves.

Why

Keep related chat code together and complete these two remaining organization batches in one coherent PR. Moving the callers with their owners keeps main independently releasable.

Linked Issue

Internal module-organization maintenance; no separate issue.

Visual Proof

N/A — file organization and import paths change; rendered content and interaction behavior are preserved.

Testing

  • I manually tested these changes locally
  • Automated tests added/updated, or explained why not below

On macOS, fresh validation at c26a47d2 passed 91 existing tests across five focused caller files, web typechecking, and normal lint/format/AST commit hooks. The final pre-push run also passed all 33 static/type checks, including Node, web and CLI typechecks. Every approved output byte and mode was retained.

The automatic related-test selection expanded into unrelated workload/performance suites and was stopped after 352 seconds under the repo guidance for excessive fan-out. That check:changed run exited 1 and is not claimed passed; its incomplete output includes localhost:3000 connection errors with no regression attribution. Focused checks passed; every applicable fresh-head CI workflow must pass before merge.

The refresh preserves current main’s launch, mention, usage-limit, crew-panel, and settings changes. The latest refresh carries seven updated current-main callers through the approved direct-owner import edits, preserving their executable bodies and import type/value bindings; the other 161 outputs remain exact. All 38 moved owners retain their approved source projection. Current terminal unsent-input replacement, full-access approval behavior, the image-marker export, and upstream test retirements remain intact. Prior tests and mobile checks are qualified evidence for unchanged code; fresh exact-head CI must pass every applicable workflow before merge. Existing behavior tests move with their owners; no new behavior test was needed.

Risk

Level: Medium

A missed import or mock path could break a chat flow on desktop or mobile. Two independent exact-head source audits checked moved bodies, caller bindings, hooks, literal values, and current-main preservation. Merge admission also checks every selected input and preserves all current-main paths outside this change. No wire protocol, storage, or platform-specific behavior changes. Back out with a plain revert.

AI Disclosure

Review

Two independent native Codex source audits approved this exact committed head with no findings. Mechanical residue was reviewed in full. Required CI and a fresh current-main merge proof remain mandatory.

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

Desktop, mobile, paired-host compatibility, folder workspaces, and cross-platform callers retain their existing behavior. The catalog correction and Hermes compatibility fix landed separately upstream and are not part of this PR. Detailed planning and evidence remain local.

Checklist

  • This PR is small and focused — one coherent 38-move input/transcript batch combining two tracker scopes
  • I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
  • I stated the risk: what could break, for whom, and how to back it out
  • Before/after screenshots or videos attached for UI changes, or N/A with reason
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
  • pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred) — focused local checks passed; CI covers applicable packaging/build checks

@coderabbitai

coderabbitai Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • Resume reviews
  • Trigger review

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: 6cedb55e-ce0b-4aae-91f6-497ba8f50a1c
Commits

Reviewing files that changed from the base of the PR and between f3339c9 and 338c32c.

Files selected for processing: 168
  • config/scripts/ci-shard-timings.json
  • mobile/src/session/__mocks__/mobile-prompt-controller.ts
  • mobile/src/session/mobile-native-chat-follow-up-preference.ts
  • mobile/src/session/mobile-native-chat-picker-scaling.test.ts
  • mobile/src/session/mobile-structured-agent-prompts.ts
  • mobile/src/session/mobile-structured-agent-session-contract.ts
  • mobile/src/session/native-chat/MobileNativeChatView.tsx
  • mobile/src/session/native-chat/composer/MobileNativeChatComposer.tsx
  • mobile/src/session/native-chat/composer/MobileNativeChatSendButton.tsx
  • mobile/src/session/native-chat/composer/mobile-native-chat-composer-menu.test.ts
  • mobile/src/session/native-chat/composer/mobile-native-chat-composer-menu.ts
  • mobile/src/session/native-chat/composer/mobile-native-chat-draft-reconcile.ts
  • mobile/src/session/native-chat/composer/mobile-native-chat-image-send.ts
  • mobile/src/session/native-chat/composer/use-mobile-native-chat-composer-menu.ts
  • mobile/src/session/native-chat/composer/use-mobile-native-chat-launch-draft-seed.ts
  • mobile/src/session/native-chat/composer/use-mobile-native-chat-skills.ts
  • mobile/src/session/native-chat/input/MobileNativeChatAsk.tsx
  • mobile/src/session/native-chat/input/MobileNativeChatPromptCard.test.tsx
  • mobile/src/session/native-chat/input/MobileNativeChatPromptCard.tsx
  • mobile/src/session/native-chat/input/MobileNativeChatSessionOptionPickers.tsx
  • mobile/src/session/native-chat/input/MobileNativeChatSessionOptionRows.tsx
  • mobile/src/session/native-chat/input/MobileNativeChatSessionOptionSegments.tsx
  • mobile/src/session/native-chat/input/mobile-native-chat-permission.ts
  • mobile/src/session/native-chat/input/mobile-native-chat-session-option-labels.ts
  • mobile/src/session/native-chat/input/native-chat-session-option-copy.ts
  • mobile/src/session/native-chat/input/use-mobile-native-chat-answer-send.test.ts
  • mobile/src/session/native-chat/input/use-mobile-native-chat-answer-send.ts
  • mobile/src/session/native-chat/input/use-mobile-native-chat-prompt-dismiss.ts
  • mobile/src/session/native-chat/input/use-mobile-native-chat-prompts.ts
  • mobile/src/session/native-chat/input/use-mobile-native-chat-session-options.ts
  • mobile/src/session/native-chat/mobile-native-chat-controller-contract.ts
  • mobile/src/session/native-chat/mobile-native-chat-eligibility.ts
  • mobile/src/session/native-chat/mobile-native-chat-pending-echo.ts
  • mobile/src/session/native-chat/transcript/MobileNativeChatMessage.tsx
  • mobile/src/session/native-chat/transcript/mobile-native-chat-display-copy.ts
  • mobile/src/session/native-chat/transcript/use-mobile-native-chat-message-send.ts
  • mobile/src/session/native-chat/transcript/use-mobile-native-chat-turn-disclosure.ts
  • mobile/src/session/use-mobile-native-chat-model-discovery.ts
  • mobile/src/session/use-mobile-native-chat-prompt-controller.ts
  • mobile/src/session/use-mobile-native-chat-queue-follow-ups.ts
  • mobile/src/session/use-mobile-structured-async-question.ts
  • mobile/src/session/use-mobile-structured-turn-indicator.ts
  • src/main/persistence/applying-settings/persistence-settings-ui-defaults.test.ts
  • src/main/runtime/rpc/methods/native-chat-rpc-block-sanitize.test.ts
  • src/main/runtime/rpc/methods/orchestration/agent-message-command-contract.test.ts
  • src/main/runtime/runtime-client-settings.ts
  • src/main/runtime/runtime-native-chat-follow-up-events.ts
  • src/renderer/src/components/native-chat/NativeChatApprovalCard.tsx
  • src/renderer/src/components/native-chat/NativeChatAutocompleteMenus.test.tsx
  • src/renderer/src/components/native-chat/NativeChatAutocompleteMenus.tsx
  • src/renderer/src/components/native-chat/NativeChatComposerActions.tsx
  • src/renderer/src/components/native-chat/NativeChatComposerField.tsx
  • src/renderer/src/components/native-chat/NativeChatImageAttachmentPreview.tsx
  • src/renderer/src/components/native-chat/NativeChatInteractiveCard.tsx
  • src/renderer/src/components/native-chat/NativeChatModelCombobox.tsx
  • src/renderer/src/components/native-chat/NativeChatPromptCollapse.tsx
  • src/renderer/src/components/native-chat/NativeChatQuestionCard.test.tsx
  • src/renderer/src/components/native-chat/NativeChatQuestionCard.tsx
  • src/renderer/src/components/native-chat/NativeChatResolvedView.tsx
  • src/renderer/src/components/native-chat/NativeChatSessionOptionPickers.tsx
  • src/renderer/src/components/native-chat/NativeChatSessionOptionRows.tsx
  • src/renderer/src/components/native-chat/NativeChatStructuredAsyncQuestion.tsx
  • src/renderer/src/components/native-chat/NativeChatStructuredSession.tsx
  • src/renderer/src/components/native-chat/NativeChatTranscriptChrome.tsx
  • src/renderer/src/components/native-chat/NativeChatUsageLimitActions.tsx
  • src/renderer/src/components/native-chat/claude-model-switch-confirmation.ts
  • src/renderer/src/components/native-chat/native-chat-composer-draft-persistence.ts
  • src/renderer/src/components/native-chat/native-chat-composer-send-state.ts
  • src/renderer/src/components/native-chat/native-chat-composer-types.ts
  • src/renderer/src/components/native-chat/native-chat-context-command.test.tsx
  • src/renderer/src/components/native-chat/native-chat-image-label.ts
  • src/renderer/src/components/native-chat/native-chat-image-paste.ts
  • src/renderer/src/components/native-chat/native-chat-interactive-prompt.test.ts
  • src/renderer/src/components/native-chat/native-chat-interactive-prompt.ts
  • src/renderer/src/components/native-chat/native-chat-launch-default-adoption.test.ts
  • src/renderer/src/components/native-chat/native-chat-message-copy-text.ts
  • src/renderer/src/components/native-chat/native-chat-pane-resolution.ts
  • src/renderer/src/components/native-chat/native-chat-pending.test.ts
  • src/renderer/src/components/native-chat/native-chat-pending.ts
  • src/renderer/src/components/native-chat/native-chat-pty-retired-model.test.ts
  • src/renderer/src/components/native-chat/native-chat-runtime-image-send.ts
  • src/renderer/src/components/native-chat/native-chat-runtime-send-launch-draft.test.ts
  • src/renderer/src/components/native-chat/native-chat-runtime-send.test.ts
  • src/renderer/src/components/native-chat/native-chat-runtime-send.ts
  • src/renderer/src/components/native-chat/native-chat-session-assembler.ts
  • src/renderer/src/components/native-chat/native-chat-session-option-apply-error-text.ts
  • src/renderer/src/components/native-chat/native-chat-session-option-cache.ts
  • src/renderer/src/components/native-chat/native-chat-session-option-discovery.ts
  • src/renderer/src/components/native-chat/native-chat-session-option-enrichment.ts
  • src/renderer/src/components/native-chat/native-chat-session-option-labels-text.ts
  • src/renderer/src/components/native-chat/native-chat-session-option-surface-call.ts
  • src/renderer/src/components/native-chat/native-chat-transcript-slots.ts
  • src/renderer/src/components/native-chat/omp-model-switch-capability.test.ts
  • src/renderer/src/components/native-chat/structured-agent-session-queue-request.test.ts
  • src/renderer/src/components/native-chat/use-native-chat-composer-catalog.ts
  • src/renderer/src/components/native-chat/use-native-chat-composer-keydown.test.tsx
  • src/renderer/src/components/native-chat/use-native-chat-composer-keydown.ts
  • src/renderer/src/components/native-chat/use-native-chat-interactive-prompt-card.ts
  • src/renderer/src/components/native-chat/use-native-chat-interactive-send.ts
  • src/renderer/src/components/native-chat/use-native-chat-launch-draft-adoption.ts
  • src/renderer/src/components/native-chat/use-native-chat-local-command-answer.ts
  • src/renderer/src/components/native-chat/use-native-chat-pending-delivery.ts
  • src/renderer/src/components/native-chat/use-native-chat-picker-command-dispatch.ts
  • src/renderer/src/components/native-chat/use-native-chat-picker-state.ts
  • src/renderer/src/components/native-chat/use-native-chat-prompt-card-presentation.test.ts
  • src/renderer/src/components/native-chat/use-native-chat-prompt-card-presentation.ts
  • src/renderer/src/components/native-chat/use-native-chat-pty-composer-send.ts
  • src/renderer/src/components/native-chat/use-native-chat-resume-command.ts
  • src/renderer/src/components/native-chat/use-native-chat-reveal-latest.ts
  • src/renderer/src/components/native-chat/use-native-chat-session-option-command.ts
  • src/renderer/src/components/native-chat/use-native-chat-session-options.test.ts
  • src/renderer/src/components/native-chat/use-native-chat-session-options.ts
  • src/renderer/src/components/native-chat/use-native-chat-skills.react.test.tsx
  • src/renderer/src/components/native-chat/use-native-chat-skills.ts
  • src/renderer/src/components/native-chat/use-native-chat-toggle-shortcut.surface-owner.test.ts
  • src/renderer/src/components/native-chat/use-native-chat-toggle-shortcut.ts
  • src/renderer/src/components/native-chat/use-native-chat-transcript-slots.ts
  • src/renderer/src/components/native-chat/use-structured-agent-session.ts
  • src/renderer/src/components/settings/ChatBehaviorSetting.tsx
  • src/renderer/src/components/tab-bar/tab-bar-item-surface.tsx
  • src/renderer/src/components/terminal-pane/use-terminal-pane-chat-state.ts
  • src/shared/agent-pending-prompt.ts
  • src/shared/agent-session/view/structured-agent-session-queued-cards.ts
  • src/shared/native-chat/input/native-chat-approval-envelope.test.ts
  • src/shared/native-chat/input/native-chat-approval-envelope.ts
  • src/shared/native-chat/input/native-chat-ask-answer.ts
  • src/shared/native-chat/input/native-chat-ask-card-rules.ts
  • src/shared/native-chat/input/native-chat-ask-dismiss-key.ts
  • src/shared/native-chat/input/native-chat-ask.test.ts
  • src/shared/native-chat/input/native-chat-ask.ts
  • src/shared/native-chat/input/native-chat-composer-autocomplete.test.ts
  • src/shared/native-chat/input/native-chat-composer-autocomplete.ts
  • src/shared/native-chat/input/native-chat-discovered-catalog-models.ts
  • src/shared/native-chat/input/native-chat-follow-up-behavior.ts
  • src/shared/native-chat/input/native-chat-interactive-prompt.test.ts
  • src/shared/native-chat/input/native-chat-interactive-prompt.ts
  • src/shared/native-chat/input/native-chat-paste-bytes.test.ts
  • src/shared/native-chat/input/native-chat-paste-bytes.ts
  • src/shared/native-chat/input/native-chat-prompt-dismiss-key.test.ts
  • src/shared/native-chat/input/native-chat-prompt-dismiss-key.ts
  • src/shared/native-chat/input/native-chat-pty-session-options.test.ts
  • src/shared/native-chat/input/native-chat-pty-session-options.ts
  • src/shared/native-chat/input/native-chat-session-option-apply-failure.ts
  • src/shared/native-chat/input/native-chat-session-option-apply.ts
  • src/shared/native-chat/input/native-chat-session-option-cache.ts
  • src/shared/native-chat/input/native-chat-session-option-dispatch.ts
  • src/shared/native-chat/input/native-chat-session-option-labels.ts
  • src/shared/native-chat/input/native-chat-skill-visibility.test.ts
  • src/shared/native-chat/input/native-chat-skill-visibility.ts
  • src/shared/native-chat/native-chat-availability.ts
  • src/shared/native-chat/native-chat-image-label.ts
  • src/shared/native-chat/native-chat-live-status.ts
  • src/shared/native-chat/transcript/native-chat-clock-skew.ts
  • src/shared/native-chat/transcript/native-chat-continuation-send.ts
  • src/shared/native-chat/transcript/native-chat-launch-draft-resolution.test.ts
  • src/shared/native-chat/transcript/native-chat-launch-draft-resolution.ts
  • src/shared/native-chat/transcript/native-chat-live-turn-membership.ts
  • src/shared/native-chat/transcript/native-chat-message-copy-text.test.ts
  • src/shared/native-chat/transcript/native-chat-message-copy-text.ts
  • src/shared/native-chat/transcript/native-chat-pending-occurrence.test.ts
  • src/shared/native-chat/transcript/native-chat-pending-occurrence.ts
  • src/shared/native-chat/transcript/native-chat-pending-pasted-content.test.ts
  • src/shared/native-chat/transcript/native-chat-pending-sends.test.ts
  • src/shared/native-chat/transcript/native-chat-pending-sends.ts
  • src/shared/native-chat/transcript/native-chat-turn-membership.test.ts
  • src/shared/native-chat/transcript/native-chat-turn-membership.ts
  • src/shared/structured-agent-question-card.ts
  • tests/e2e/native-chat-ssh-delivery.unit.test.ts
Files with no reviewable changes: 6
  • src/shared/native-chat/input/native-chat-approval-envelope.test.ts
  • src/shared/native-chat/input/native-chat-session-option-apply-failure.ts
  • src/shared/native-chat/input/native-chat-paste-bytes.test.ts
  • src/shared/native-chat/input/native-chat-follow-up-behavior.ts
  • src/shared/native-chat/transcript/native-chat-clock-skew.ts
  • src/shared/native-chat/input/native-chat-prompt-dismiss-key.ts
Files skipped from review as they are similar to previous changes: 2
  • src/renderer/src/components/native-chat/use-native-chat-composer-keydown.ts
  • src/renderer/src/components/native-chat/NativeChatComposerField.tsx

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

Walkthrough

Native chat imports now point to modules under the input and transcript directories. Shared module imports were adjusted, and the composer autocomplete module no longer re-exports picker and send-classification APIs. Mobile, main, renderer, and shared consumers and related tests now use the updated paths. Two CI timing-map keys now include the input/ directory; timing values remain unchanged.

Merge Risk: Minimal · up to 338c3

No merge-blocking regression was identified. Run the normal exact-head checks before merging.

Pre-merge checks: Passed 5
Check name Status Explanation
Title check Passed The title clearly and concisely describes the main change: organizing native-chat input and transcript owners.
Docstring Coverage Passed No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
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.
Description check Passed The description is detailed and follows the required structure. It explains the change, rationale, testing, risk, rollback, visual proof, AI disclosure, review, notes, and checklist. The Linked Issue …
Full details: Docstring Coverage

Explanation

No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 50 files. (112 skipped: 1 unsupported, 111 over the file limit.)

Full details: Description check

Explanation

The description is detailed and follows the required structure. It explains the change, rationale, testing, risk, rollback, visual proof, AI disclosure, review, notes, and checklist. The Linked Issue section does not include an issue link, but the author identifies this as internal maintenance, which may qualify for the template’s maintainer exception.

Finishing Touches
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

@nwparker
nwparker force-pushed the module-organization/native-chat-input-transcript38-m9b391880 branch 5 times, most recently from f3339c9 to 338c32c Compare November 2, 2026 08:34
@nwparker nwparker closed this Nov 2, 2026
@nwparker nwparker reopened this Nov 2, 2026
@nwparker
nwparker force-pushed the module-organization/native-chat-input-transcript38-m9b391880 branch from 338c32c to ed5a811 Compare November 2, 2026 10:19
@nwparker
nwparker force-pushed the module-organization/native-chat-input-transcript38-m9b391880 branch from ed5a811 to c26a47d Compare November 2, 2026 10:45
@nwparker
nwparker merged commit 51cb2f1 into main Nov 2, 2026
65 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