Repository navigation
Open a native chat copy in the CLI without waiting for History - #29126
Conversation
|
“Resume in New CLI” on a native chat tab waited for the complete Session History scan, so a large or busy history could hide the action. This PR offers the action immediately and asks the computer running that chat to prepare a separate CLI conversation from its saved identity. Older paired hosts retain one bounded History lookup. Two source-review rounds, an independent design check, a dedicated performance review and a readiness audit completed at
No new confirmed defect was found in the final source review. Source inspection does not prove that every external provider file contains the journal’s latest turns. Older OpenCode startup-mode and Claude filename/identity concerns remain unproved; inherited file-access wording and OMP home lookup remain outside this PR. The consolidated transport test also does not independently isolate cancellation while pairing stays unchanged; that path was verified in source. PR Checks 38738391779 passed on exact head Rendered QA covers the Orca-owned acceptance criteria. Grok drove hidden Electron through Playwright CDP on M4Air at exact branch head
The Codex CLIs stopped at sign-in, and the legacy simulation’s CLI subsequently reported that the source was not found in its default-home isolation. Those observations do not fail the approved Orca-owned acceptance criteria or claim successful provider continuation. OpenCode/OMP runtime continuation was not exercised. The source/performance review’s deferred concerns above remain unproved; no new confirmed defect was found. Owned test apps and isolated provider helpers have exited, both owned remote QA checkouts have been removed, and evidence is preserved outside the checkouts. The rendered retry’s real-config hashes matched before and after; an earlier preflight hash drift has no identified writer and is excluded from that claim. Ready to merge: final readiness passed on CDP clips from the retry (pending state comes from the associated call trace): Main default control: Claude menu while its History lookup was pending. Branch menu with “Resume in New CLI”; the associated Claude trace records the action visible while the real refresh remained pending. Ordinary-home Codex destination: the launched CLI at its sign-in boundary. No sign-in was used; provider-internal copying is unchanged by this PR. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Priority: ➖ Normal Merge Risk: ⚪ Minimal · up to
|
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
- Configuration used: Repository UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
61fa6fa8-d51f-4582-b438-701a5ccc35f2
📒 Files selected for processing: 30
src/main/ai-vault/runtime-session-scanner.tssrc/main/ai-vault/structured-chat-cli-fork.test.tssrc/main/ai-vault/structured-chat-cli-fork.tssrc/main/ai-vault/structured-chat-conversation-copy.tssrc/main/ipc/ai-vault-resume.tssrc/main/runtime/rpc/methods/ai-vault.tssrc/preload/api/ai-vault-api.tssrc/preload/api/ai-vault-bridge.tssrc/renderer/src/components/right-sidebar/AiVaultSessionSurfaceSwitchMenuItems.tsxsrc/renderer/src/components/right-sidebar/ai-vault-session-launch-actions.tssrc/renderer/src/components/tab-bar/NativeChatCliForkMenuItems.tsxsrc/renderer/src/components/tab-bar/SortableTab.tsxsrc/renderer/src/components/tab-bar/SortableTab.update-depth-probe.test.tsxsrc/renderer/src/components/tab-bar/SortableTabContextMenu.tsxsrc/renderer/src/components/tab-bar/TabSessionSurfaceSwitchMenuItems.test.tsxsrc/renderer/src/components/tab-bar/TabSessionSurfaceSwitchMenuItems.tsxsrc/renderer/src/components/tab-bar/native-chat-cli-fork-run.test.tssrc/renderer/src/components/tab-bar/native-chat-cli-fork-run.tssrc/renderer/src/lib/ai-vault-session-resume-preparation.tssrc/renderer/src/lib/launch-ai-vault-session-and-reveal.tssrc/renderer/src/lib/native-chat-cli-fork-preparation.test.tssrc/renderer/src/lib/native-chat-cli-fork-preparation.tssrc/renderer/src/web/preload-api/web-ai-vault-api.tssrc/renderer/src/web/preload-api/web-runtime-calls.tssrc/renderer/src/web/preload-api/web-runtime-environments-api.tssrc/renderer/src/web/web-preload-api-runtime-calls.test.tssrc/shared/ai-vault-chat-fork-contract.tssrc/shared/ai-vault-resume-preparation.tssrc/shared/protocol-version.tssrc/shared/rpc-contract/ai-vault-params.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
…as no CODEX_HOME path



ELI5
“Resume in New CLI” on a native chat tab waited for the full Session History scan. A large or busy history could therefore hide the action. The action now appears immediately and asks the computer running that chat to prepare a separate CLI conversation when clicked.
What Changed
The host derives the current conversation, account and directory from its saved chat record, then reuses the existing provider copy and terminal startup paths. The source chat stays open. Older paired hosts keep one bounded History lookup; a failure from a capable host never starts a History scan or runs the operation locally.
The review repairs restore destination-workspace activation, preserve supported copy and old-host wait limits, and prevent preparation that is still queued from starting after the source closes. The initiating menu shows the existing spinner, remains dismissible, and cannot close a later menu when the old operation finishes. Empty native conversations are refused using the existing saved journal; uncertain delivery reports a preparation error. This does not claim that every external provider file has flushed its latest turns.
Why
The host already owns the conversation identity and preparation rules. Using those facts removes global discovery as an action prerequisite. Shared terminal completion, the existing request queue and the existing journal avoid parallel launch, cancellation or content-scanning mechanisms.
Intended differences from the common pattern: external CLI copies need provider-specific saved-file/account preparation, and older paired hosts need the bounded compatibility path. SSH and WSL restrictions remain in place.
Linked Issue
Internal maintainer work. Replaces the native-chat-to-CLI portion of #28284.
Visual Proof
Required remote Electron comparison is blocked. No app or provider flow ran and no screenshots were produced. The M4 was saturated, Windows high spec lacked safe capacity after an isolated native-dependency install failure, and Windows low spec was unreachable. Shared QA machines also have active rigs; Windows high spec is reserved for a higher-priority review. This PR remains a draft.
Testing
PR Checks 38738391779 passed on exact head
c8f7e783d831a381a37b5905209f0198d47ccdfb: static analysis/typechecks, all five full unit-test shards, relay integration, cross-version wire compatibility and Linux/Windows packaging. The newer workflow deliberately skips its aggregate after successful routing validation; that validation succeeded and no required job failed or was cancelled. This satisfies the binding CI ruling. Rendered Electron checks were not run by this draft workflow.No local test, typecheck or build ran under the no-dependency builder rules. Staged-file lint, React checks and formatting ran through existing tooling. Runtime provider copies, setup/default-tab behavior, caret focus, folder workspaces, real old peers and network interruption remain unverified.
Review
Two source-review rounds, a fresh design decider, a dedicated performance pass and a readiness source audit checked the affected paths. Five confirmed findings were repaired; no new confirmed finding was found in Round 2. Final exact-commit confirmation: renderer, host/readiness and performance reviewers independently confirmed
c8f7e783d831a381a37b5905209f0198d47ccdfb. Production is unchanged from the reviewed repair commit; the last commit consolidates two tests. The combined transport test does not independently isolate queued cancellation while pairing stays unchanged; the source cancellation path was verified..Deferred concerns: a supported older OpenCode copy reaching the changed startup mode, a natural Claude filename/record-ID mismatch, and a journal/provider-file content disagreement were not proved by the bounded traces. Existing locator access-error wording and OMP home lookup remain shared-mechanism follow-ups outside this PR.
Agent skill upstream boundary
Notes
Author: @BrennanKB5. No new saved fields or RPC method; the chat request is capability-negotiated and the result adds optional preparation facts. Folder paths and account selection belong to the execution host. Main has not been integrated during review; the final integration and its exact-commit checks remain for after QA.
Checklist