Repository navigation
refactor: organize native-chat input and transcript owners - #37334
Conversation
|
Note Reviews pausedIt 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 Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
No actionable comments were generated in the recent review.
|
f3339c9 to
338c32c
Compare
338c32c to
ed5a811
Compare
ed5a811 to
c26a47d
Compare
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
On macOS, fresh validation at
c26a47d2passed 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:changedrun 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
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
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred) — focused local checks passed; CI covers applicable packaging/build checks