Repository navigation
Extract conversation switch foundations without activating them - #34384
Conversation
Walkthrough
Priority: Merge Risk:
|
There was a problem hiding this comment.
🔇 Additional comments: 1
src/shared/session-tab-placement.ts-68-73: 1
68-73:Minor · Functional Correctness · Quick win
⚠️ Unverified finding
Verification ran but could not confirm this finding. It is shown for review, not as a verified issue.Preserve parent-group placement when the anchor retires.
If
afterParentGroupis true and a split sibling survives, this branch ignores that option. For a capture of[left, right, trailing]afterleft, removingleftmakes this branch insertcreatedbeforeright. The existing parent-group rule placescreatedafterright. Capture the group boundary or retain the anchor’s parent identity so the missing-anchor path can apply the same rule. (raw.githubusercontent.com)

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:
1ba82a86-fdf1-4e3a-afb1-f7d0fab8b540
Files selected for processing: 22-
src/main/daemon/daemon-pty-spawn-preparations.test.tssrc/main/daemon/daemon-pty-spawn-preparations.tssrc/main/native-chat/agent-session-wire/structured-agent-session-host-types.tssrc/main/native-chat/agent-session-wire/structured-agent-session-switch-command-selection.tssrc/main/native-chat/agent-session-wire/structured-agent-session-switch-commands.tssrc/main/runtime/agent-session-record-publication.tssrc/main/runtime/agent-session-record-store.tssrc/main/runtime/agent-session-store-transactions.tssrc/renderer/src/components/native-chat/structured-agent-session-read-owner-contract.tssrc/renderer/src/components/native-chat/structured-agent-session-read-owner-create.tssrc/renderer/src/components/native-chat/structured-agent-session-read-owner.tssrc/shared/agent-session-lease-adjudication.tssrc/shared/agent-session-native-content.tssrc/shared/agent-session-switch-execution.tssrc/shared/pty-fenced-termination.tssrc/shared/rpc-contract/structured-agent-session-mutation-envelope.tssrc/shared/rpc-contract/structured-agent-session-params.tssrc/shared/rpc-contract/structured-agent-session-question-params.tssrc/shared/rpc-contract/terminal-unary-params.tssrc/shared/runtime-rpc-envelope.tssrc/shared/session-tab-placement.tssrc/shared/terminal-tab-close.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.
-
|
The larger switch change needs its existing reader and record publication code separated so it can be reviewed and validated on its own. This PR extracts those bodies and adds inactive definitions. It installs no new switch action and preserves the existing chat and terminal behavior; the active feature remains tracked in #31595. Independent review found no open defects for this cut. The 22 selected file blobs match the reviewed implementation, and complete-tree reconstruction preserves the remaining change and newer main code. The common ownership/publication pattern was compared first-hand; the inactive delivery cut is intentional. No temporary behavior exclusions remain in this cut. Validation on For Brennan's review These show the existing copy into a new terminal and History adoption into a new chat. The in-place switch in #31595 has its separate review and QA. Three source boundaries: commit before publication, preserved reader owner, and uninstantiated switch factory. |






This separates the existing transcript reader and record publication code, plus inactive switch definitions, from the chat/terminal switch tracked in #31595. No switch caller, handler or capability is installed by this PR, so users keep the existing chat and terminal behavior. The active feature stays together in #31595.
The cut contains 22 files and 1,777 production / 31 test-support lines added or removed. Independent review verified the exact cut, unchanged active reader/publication behavior and complete-tree conservation against the reviewed implementation and newer main changes. The normal commit hook, 144 targeted tests and hosted CI passed; the four root compiler projects and full unit shards actually executed.
Targeted ordinary flows passed with real Claude and Codex: two native-chat sends and replies; the existing copy/fork into a new CLI terminal with a reply while the source stays open; normal CLI exit followed by Session History adoption and another reply. Both isolated app stages stopped gracefully and all recorded owned process identities exited. These results cover the inactive foundation; the new in-place switch remains subject to #31595’s separate review and QA.
Reference comparison is complete for this cut: committed publication and one reader owner follow the common pattern; the inactive delivery cut is intentional.