Repository navigation
Conversation
shrey150
force-pushed
the
codex/desktop-tab-sync
branch
from
November 13, 2026 22:09
1d6b663 to
9a7ba64
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Switching between tabs with the same URL can display the wrong Live View, and closing an earlier tab can change which browser page a stale tab ID refers to. Background navigation can also overwrite the address bar, while a late debug response can replace the view after another tab has been selected.
This change assigns stable tab IDs and uses each page's actual CDP target for Live View selection. Active-page identity survives tab removal, background navigation leaves the active address alone, and superseded sync/debug responses cannot overwrite newer state. The current debug URL is retained for renderer reloads and automation. A failed lookup ends the loading state with a retry message for the current selection; stale lookup failures do not show an error over another tab.
Stacked on #16 (
codex/desktop-session-lifecycle), which is stacked on #14. Review this diff against the lifecycle branch. No version bump or changeset is included.E2E Test Matrix
npm run buildnode --test tests/*.test.cjshttps://example.com1024 × 700; background navigation preserved the active address; closing an earlier tab preserved the active ID; a repeated stale close ID did nothing.COMPLETED.Screenshot
Screenshot
Actual desktop window displaying a synthetic task in a real cloud browser, captured with the companion runtime and shell-isolation changes applied. The screenshot-only computer-use model completed the form; the remote page independently confirmed the values.
Combined validation: the mainline candidate containing #13–#18 and #20 passed builds, all 34 automated tests, and the high/critical advisory gate on Linux, macOS, and Windows. Cross-platform CI results.