Repository navigation
fix(tab-bar): resolve Resume actions without waiting for a full History scan - #28284
brennanb2025 wants to merge 14 commits into
Conversation
…ithout waiting for Session History The tab right-click menu only added the item after a full Session History scan answered, so a slow or failing scan hid it. The menu now offers it from what the tab itself knows, and the click looks up the Session History row and runs the row's own gate and handler, through one runner shared with the terminal header's Resume in New Native Chat button.
|
The tab’s Resume command depended on discovering every saved agent conversation, so a stalled History scan could hide it or hold up a click. Supported actions now appear immediately and resolve the selected conversation on its execution machine through the existing fork, import and launch paths. The source stays open and the clicked control shows progress. Seven source review rounds are complete and all 14 accepted findings are corrected, including ownership, cancellation, account/host identity, provider imports and readable errors. The final error-copy regression failed before the fix and all 11 existing menu tests then passed. The later integration with main passed a separate narrow source/readiness/compatibility/performance review. Current head Historical real public Codex checks verified resume/fork, native adoption, non-Git folders and the matching three-tab to four-tab placement shown in the PR. Later isolated copies passed bidirectional pairing/status/reconnect but reached normal authentication limits for provider execution. Those results are historical and do not validate this head. No credentials/configuration were copied or sign-in started; the incompatible handwritten fixture received no production patch. Fresh final-head remote Electron QA remains blocked. Both pins built successfully. The hidden Windows main control passed boot, onboarding, project registration, workspace opening and normal menu captures; setup execution and the saved default tab were not observed. Its ordinary History scan discovers Windows Subsystem for Linux (WSL) users’ homes beyond the temporary Windows profile. A bounded path-forwarding experiment still returned the guest’s real home, so it did not establish isolation. No indexed conversation was opened; actual guest reader installation remains unverified. Windows low spec’s registered Orca runtime is unreachable. Final Resume comparisons need a reachable Windows runtime with isolated test homes. The same Grok driver/workers are preserved; no current-head Resume pass is claimed. Old recorded app/runner processes and listeners were closed normally. Four later M4 helpers have unverified launch ownership and are preserved; no process signals are authorized for them. Historical whole-run configuration preservation remains unverified. An additional Windows Codex configuration hash change was observed during read-only preparation after the installs’ immediate hashes had matched; its cause is also unknown. Both changes are preserved without restoration, and subsequent Windows setup matched fresh immediate phase hashes. The existing fork-history display issue occurred on both earlier pins and is tracked separately. Current-head CI is green. The PR remains draft and unmerged pending fresh rendered QA. |
|
Closing as superseded after reviewing the production delta at The two tab actions now bypass History through the newer direct flows: #29126 prepares a native-chat CLI copy from the host-owned chat record, and #29150 resumes a CLI conversation through host-attested source evidence. #29783 adds mobile chat-to-CLI support, and #33954 adds paired-server CLI-to-chat support. Current This is behavioral supersession, not an exact implementation match. The generic This disposition is based on source review; I did not run tests or rendered QA. The draft's pending current-head rendered QA is not the reason for closing. The branch is preserved. |
ELI5
The tab’s Resume command depended on scanning every saved agent conversation. A stalled scan could hide the command entirely, and the earlier fix still left a click waiting behind that scan. The command now appears immediately for supported tabs and resolves the selected conversation directly on its machine. The initiating control shows progress while it opens the destination.
What Changed
The execution host owns lookup, account/path checks and destination preparation. Current paired machines use the selected-conversation request; older peers use the existing same-machine History compatibility path. A current host’s error does not trigger a local lookup or full-scan retry.
Why
The tab already identifies the conversation the user wants. Resolving that conversation through the existing provider mechanisms removes unrelated discovery from the normal click path without introducing another session inventory or launch system. Whole-History scan performance remains separate work. Existing owners resolve before external transcript eligibility, so an unreadable or large external file does not prevent opening an already-owned chat.
Linked Issue
N/A — maintainer report.
Visual Proof
Remote M4Air control on main
dd4d0fa51f03and PRf62a249ca7fb, using the same real, public Codex conversation. Both start with editor, native chat and browser tabs, with the chat selected. The actual menu click keeps those tabs and appends a selected CLI tab that loads the forked conversation. These inspected whole-window images prove this historical local flow. They were captured before the new test-home isolation requirement, and those app copies have been retired. Profile onboarding notices are outside the change; the remaining QA below is still open.A fresh isolated-home comparison at the prior PR commit used the same two tabs after Native Chat could not authenticate. Main hid Resume in New CLI; the PR offered it and then reported that the source chat was unavailable, keeping the source selected and opening no destination. The screenshot exposed an internal call name. Commit
8f081defd586now routes that reason and the two analogous terminal failure messages through the existing display formatter. The correction passed independent review and the existing 11-case menu suite; its fresh rendered comparison is still pending. This image records the earlier failure path, not the corrected display or a successful provider resume.Testing
Seven source review rounds are complete and all 14 accepted findings are corrected. They cover immediate menu availability, selected lookup, source ownership, cancellation, host/account identity, provider import and readable failure feedback. The final error-copy correction passed independent review and all 11 existing menu tests. A subsequent integration with main passed a separate narrow source, readiness, compatibility and performance review. Normal commit hooks passed. Current-head full CI passed; fresh rendered QA remains open.
f62a249ca7fb, including static analysis, unit shards, changed end-to-end tests, packaging and compatibility gates. This does not validate the current commit.7c32d7526a9efixes the existing local type without changing execution behavior; normal hooks and push passed. Downstream tests on that failed workflow were skipped.540c50c72e54. Independent architecture and actual-patch checks retained the two-file type-contract correction with zero findings. It preserves the selected callback and initialization order; normal hooks passed and the committed tree exactly matches the reviewed tree.c3f13ce9a352. All five unit shards, static analysis/typecheck, packaging, changed end-to-end tests and compatibility gates succeeded. All 12 selected Resume suites actually ran and passed (126 tests). Main intentionally skips the final check job on canonical success; the full workflow, aggregate routing and required underlying jobs were verified. The preceding540c50c72e54run failed on an existing shell-quoting test expectation and an unexplained test-worker crash. The current commit corrects that expectation to match unchanged production behavior; the new full run passed, including the previously affected worker test.a3373af63531and PRc3f13ce9a352have matching Electron 43.7.8 binaries and successful builds. The hidden Windows main control passed boot, onboarding, project registration, workspace opening and ordinary menu captures. Setup execution and the saved default tab were not observed. Its ordinary History scan also discovers Windows Subsystem for Linux (WSL) users’ homes, which the temporary Windows home does not isolate; a bounded environment-forwarding check still returned the guest’s real home. No indexed conversation was opened, and actual guest runtime installation remains unverified. Windows low spec’s registered Orca runtime is unreachable. Final main/PR Resume comparisons need a reachable Windows runtime with isolated test homes; the same Grok driver and workers are preserved.The genuine public saved transcript reached the normal Codex sign-in boundary under isolated homes. Isolated Claude authentication was unavailable; the bounded OpenCode alternatives failed before producing a usable conversation. No credentials or real configuration were copied, no sign-in was started, and authentication refusal is not counted as successful Resume. The earlier handwritten fixture was incompatible with the provider format and received no production patch.
The historical apps used the native home; whole-run configuration preservation is unverified. Their recorded main app/runner processes and debugging listeners were later closed normally, without process signals. Windows real configuration hashes stayed unchanged across retirement. Later, the Windows Codex configuration hash changed during read-only preparation, after the completed installs had matched their immediate before-and-after hashes. The M4 Codex configuration hash also changed without an established cause or restoration. Both changes remain unattributed; no file was restored. Subsequent isolated Windows setup phases matched fresh immediate before-and-after hashes. Four later observed M4 helper processes have unverified launch ownership and are being preserved. Windows is the current QA target. Every new test copy uses temporary homes, normal hooks, hidden launch and the runner’s cleanup opt-out.
The historical control SSH server and daemon were verified against their build and temporary homes. The PR’s changed SSH flow remains unverified. Native Chat adoption omitting inherited fork messages occurred on both earlier pins and is tracked separately; it does not establish provider data loss. Full History scan performance is also separate work. Current-head CI is green. The PR remains draft and unmerged while final remote QA is incomplete.
AI Disclosure
Review
Agent skill upstream boundary
Notes
Folder workspaces retain their existing host/workspace handling. New complete-file imports are bounded at 16 MiB; existing owners and provider databases do not receive that whole-file size gate. Observer cancellation does not promise that every issued filesystem operation or request sent to an older peer physically stops.
Checklist