Skip to content

fix(tab-bar): resolve Resume actions without waiting for a full History scan - #28284

Closed
brennanb2025 wants to merge 14 commits into
mainfrom
brennanb2025/tab-menu-resume-without-scan
Closed

brennanb2025 wants to merge 14 commits into
mainfrom
brennanb2025/tab-menu-resume-without-scan

Conversation

@brennanb2025

@brennanb2025 brennanb2025 commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 21 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​2009 $\color{#cf222e}{\Huge{\mathbf{−}}}$​671 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​1338
Prod 90 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​3112 $\color{#cf222e}{\Huge{\mathbf{−}}}$​856 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​2256

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

  • Native chat tabs offer Resume in New CLI immediately for supported providers. Supported running local agent terminals offer Resume in New Native Chat, using the same operation as the terminal header button.
  • A click resolves the named conversation through the provider’s existing account, storage and transcript reader. It uses the existing fork, import and launch paths. The source tab stays open.
  • If the conversation already has a native chat, the header opens that chat. The menu’s explicitly new-chat action reports the existing owner without navigating or creating a duplicate.
  • Repeated clicks across the menu and header share one pending operation. Closing or replacing the source, or changing its paired machine before destination handoff, retires the operation quietly. A destination already handed to the launch path keeps its own lifetime.
  • Read failures and incomplete searches remain failures; a completed missing or empty result gets the existing not-saved guidance. Unsupported host routes stay unavailable.

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 dd4d0fa51f03 and PR f62a249ca7fb, 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.

Version Before Resume After Resume
Main Main before Resume Main after Resume
PR PR before Resume PR after Resume

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 8f081defd586 now 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.

Fresh isolated-home unavailable-source error

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.

  • Historical hosted workflow 38580815547 passed at f62a249ca7fb, including static analysis, unit shards, changed end-to-end tests, packaging and compatibility gates. This does not validate the current commit.
  • The integrated commit’s hosted workflow 38725950045 found a renderer return-type error. Commit 7c32d7526a9e fixes the existing local type without changing execution behavior; normal hooks and push passed. Downstream tests on that failed workflow were skipped.
  • The confirmed later-main conflict is resolved and pushed at 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.
  • Current-head full workflow 38740816273 passed on 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 preceding 540c50c72e54 run 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.
  • Historical M4Air real public Codex comparisons verified ordinary resume/fork, native adoption, non-Git folders and the matching tab placement pictured above. Later isolated copies booted and passed mixed-version LAN pairing/status/reconnect in both directions. These are historical flow and transport results, not current-head feature proof.
  • Fresh remote Electron QA on the final commit: main a3373af63531 and PR c3f13ce9a352 have 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.
  • Remaining live coverage includes the other entry points and ownership cases, busy History, cancellation recovery, setup execution/default tabs, Windows/WSL, selected lookup over paired machines, SSH and resource cleanup. The existing automated contracts must also pass on the resulting head.

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

  • Not applicable; no upstream skill-installer content is copied or translated.

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

  • I explained the problem, user-facing change, mechanism and approach.
  • Self-reviewed for correctness, security and performance.
  • Cross-platform, SSH/remote and compatibility impact considered.
  • Inspected historical main/PR before/after screenshots and the earlier isolated failure image attached, with their provenance and current replay gaps stated.
  • Current-head full workflow passed and GitHub reports no conflicts.
  • Final remote rendered QA complete. Historical evidence is distinguished above.

…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.
@brennanb2025

brennanb2025 commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor Author

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 c3f13ce9a352 is published and mergeable. Full workflow 38740816273 passed: 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), independently matched against the completed logs. Main intentionally skips its final check job on canonical success; the aggregate routing and required underlying jobs were verified. The preceding integration run failed on an existing shell-quoting expectation and an unexplained test-worker crash. The current commit only updates that expectation to match unchanged production quoting; the new full run passed, including the affected worker test. The earlier narrow architecture/readiness/performance reviews remain applicable.

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.

@brennanb2025 brennanb2025 changed the title fix(tab-bar): Resume in New CLI / Native Chat shows on the tab menu without waiting for Session History fix(tab-bar): resolve Resume actions without waiting for a full History scan Oct 14, 2026
@OrcaWin

OrcaWin commented Oct 27, 2026

Copy link
Copy Markdown
Collaborator

Closing as superseded after reviewing the production delta at c3f13ce9a352d641b814ac0778d6575e1ace9955 against current main 0cee6cbd863f286813ddbfdf8d9cb568e52ae059.

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 TabSessionSurfaceSwitchMenuItems delegates immediately to the dedicated fork/resume controls; shared pending state, source lifetime checks, host account/path admission, and header-owner activation versus new-menu conflict feedback live in those flows.

This is behavioral supersession, not an exact implementation match. The generic aiVault.resolveSession RPC, selected preview worker, and early-stop transcript walker here remain different machinery; those do not leave a missing requirement for these tab actions. A targeted provider-lookup optimization can be evaluated separately if needed, while retaining current main's newer path and ownership guards.

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.

@OrcaWin OrcaWin closed this Oct 27, 2026
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.

2 participants