Repository navigation
Conversation
…cua's own (ruling 1314); extension 0.4.0 adds tabs.activate The host opens the window unfocused at the session's first created tab, which replaces its New Tab page; the created tab in it that last took attach or executeCdp is made its active tab (tabs.activate, once per change). It closes with its last tab unless it is the profile's last window; a tab of the person's keeps it open. Linux, an extension before 0.4.0 and a MAWS peer keep today's placement. Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…wn-extension design records tabs.activate and the window of cua's own; a claimed tab in cua's window is never activated (test) Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
… hosted-macos.sh, the window tools, #610's pin) Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…, closed with its last tab; the New Tab page rule and 'never opens a window' say so Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…e strip, reads floating windows (the cover), keeps cua's window minimized before the close, and checks whether cua's window opens behind the one in front Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
… cua's window's last 60 points (Target.activateTarget does not reorder Chrome's windows on the hosted runner) Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…44543495): their rows, the probe's lines, and the README's tables Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
# Conflicts: # .claude-plugin/marketplace.json # .claude-plugin/plugin.json
…0.4.0 (the real host is the machine's, and test-2 runs on a Mac); a macOS-only test drives cua's own window through the real host and extension ci-gate run 46362733420 failed test-2 on these three: on the hosted Mac the spawned host saw the checkout's extension at 0.4.0 and opened a window of its own. Checked here with the host forced to darwin: 14/14. Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…eaving that showed it
P1 placeholder removal: windows.create {url} opens cua's window on the session's first
tab and answers its id (extension), so no New Tab page is made, read or removed, and no
tab is judged cua's by a later look at the window.
P1 activation: tabs.activate selects by window and index (chrome.tabs.highlight) and
answers whether the tab is active after it; a drag landing between the read and the
selection can only select another tab of cua's window (Chromium 158 tabs_api.cc,
TabListBridge::HighlightTabs: no window activation).
P2 close exemption: given up when the session's client goes, after its closes.
P2 reuse vs teardown: the reuse runs where the window checks run (windowsExclusive); a
tab that still lands in a window just handed to the person is closed (cua's own) and
made again in a fresh window of cua's; a window that closed meanwhile gets a fresh one.
P2 stale cache: Chrome's tabs.onActivated is relayed (tabs.activated); only Chrome's
answer or that event marks a tab active; an activation in flight is joined.
P2 unbounded first activation: none any more (a window's only tab is its active one).
P2 failed first create: one primitive makes the window and its tab, nothing to undo.
P2 MAWS dispatch: a request with nothing to activate is dispatched synchronously, as on
main (needsDrive).
Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…ndows.create {url} and the confined tabs.activate
Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…/31, the front-ordering check only) and where cua's window lands while another app is frontmost (46388949499: over that app's window, unfocused); front.mjs and mac-app.swift Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…fter disconnect, reply vs newer selection, selection before creation answers, no-replacement fallback) and the pinned P1-1 limit test; fixes not built (ruling 1338 hold) Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
Race fixes:
- a window being handed to the person is given up before its protective New Tab page
is asked for: no reuse of it, no activation in it while that request is on its way;
- a window whose creation answers after the session's client left is given up after
its own tab closes;
- Chrome's tabs.activated reports are counted per window, and an activation's reply
is believed only if no report came after its request; a new window's active tab is
unknown until Chrome says, never assumed;
- the replace-in-a-fresh-window path is gone: a tab that lands in a window just handed
to the person stays there, the session's, inactive and never activated;
- only the session's current window is cua's (an old one is retired).
The P1-1 limit (a tab the person placed in cua's window can inherit the dragged tab's
index) is pinned by a test and named in the extension.
The panel: windows.create {left, top, width, height}: 500x375, half off the primary
display at its top edge, on the side away from the Dock (chrome.system.display's work
area: the new system.display permission, which carries no install warning), or the
other side when a display adjoins; placed once, never moved back.
Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…es it; the corner panel withdrawn (ruling 1345)
The panel's half-off-screen bounds are not achievable (Chrome keeps the window it
creates on screen), its 500x375 size broke parity-browser's drag cells, and asked
bounds did not decide the stacking order (hosted runs 46399440730, 46402846688,
46410016977). windows.create goes back to {focused: false, url, group, guard};
displays.query and the system.display permission go. The race fixes of ruling 1339
stay.
Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…ruling 1349) On the owner's MacBook, a window opened unfocused and with no bounds by a Chrome that was not the front application opened behind all of the person's windows, at normal size, and the screenshots agree with the window list. Chrome reported it visible though fully covered; its speed was not measured there. With the person's own Chrome as the front app, where the window opens is unmeasured. The README's own-window lines say so, and a leftover "panel" from the withdrawn corner panel becomes "window". Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…he report count only grows P1: removing the window from cua's stopped new activations but not one the extension was already running. Its tabs.highlight could land after the session left and change the person's selection in the window now theirs. The host now sends windows.release before a handback completes (the session leaving, a late create after it, and before the protective New Tab page) and waits for the answer at most ACTIVATE_WAIT_MS. The extension records the release, and tabs.activate checks it in the same step that selects, with no await between. So a highlight was either issued while the window was cua's, or it is declined. An unanswered release hands back after the bound and is logged. P2: a window's report sequence restarted at 1 on every tabs.activated (read after the entry's delete), so with a populated cache a late reply was believed over a newer selection. It is now a count over all reports. Extension 0.4.0 gains windows.release (unreleased, so no bump). Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…deadline) and P3 (the released set never shrinks), shipped under ruling 1350 Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…window is the profile's last (final check P2, ruling 1354) checkWindow awaited windows.release (up to 1 s) before asking for the protective New Tab page, all inside keepWindow's 2 s bound. A slow tab query plus a slow release reply let the last tab close first, and the window and profile went with it. The release is now sent first and the New Tab page asked for right after it, without waiting for the reply. The extension handles messages in order, so the release is still recorded first, and checkWindow still waits for the release, bounded, before it returns. The tracker drops the P2; the P3 stays logged. Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…uling 1351) Conflicts: plugin.json and marketplace.json keep 626's 0.31.6; tech-debt-tracker.md keeps both new entries. Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
SSFSKIM
enabled auto-merge (squash)
December 1, 2026 04:40
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.
Closes #626
Refs #610
What changes
On macOS, the tabs an agent session creates now open in a Chrome window of cua's own, in the person's profile, instead of in the background of the person's window (owner's ruling 1314). It ships at normal size, placed as Chrome places any new window (ruling 1380).
focused: falseon the session's own tab (windows.create {url}returns that tab, so no placeholder tab is made or removed). Driving another tab of the session's selects it within cua's window only, and neither focuses nor raises the window.The details:
attachorexecuteCdp. The host asks the extension's newtabs.activateto select it when Chrome hasn't reported it as the window's active tab.tabs.activateselects by window and index (chrome.tabs.highlight), never by tab id.tabs.onActivatedis relayed to the host, which counts the reports per window. An activation's reply counts only if no newer report came after the request, so a selection the person makes wins.windows.releaseand waits for its answer.tabs.activatechecks the release in the same step that selects, so an activation already on its way when the session leaves selects nothing there. The host waits at most 1 s (the activation's own bound). If the extension doesn't answer, the handback completes anyway and is logged; the extension's check still guards, and an extension that isn't answering selects nothing.preferredWindowId, which names one of the person's windows, is not used for created tabs.The extension goes to 0.4.0:
tabs.activate {tabId, windowId};windows.release {windowId}: the window is the person's from now on;windows.createtakesurl,groupandguard, and returns the window's first tab;tabs.activatednotification.Its permissions are unchanged.
Limits
visiblefor a window born behind the person's windows on a real Mac, though it was fully covered. Its tab's speed then was not measured.Measured on GitHub's hosted macOS runner
The setup:
626-macos-probe, which is not merged; evidence indocs/evidence/2026-11-29-own-window-626/.Results:
Not shown live:
The real-Mac look (owner's MacBook, 2026-11-30, ruling 1349)
The kit is commit 28ddbd7 on branch
626-look-kit; it is not merged.windows.create {focused: false, url}and no bounds, as Browser service on macOS: open the tabs cua creates in a Chrome window of cua's own, so they keep full speed while part of that window shows #626 does: a stand-in for the person's window, then cua's.The result:
visiblethe whole time, though both windows were fully covered.Not covered:
The redacted record and the caveats are in the evidence README's "Real-Mac look (2026-11-30)".
Unresolved Review Findings
The final check on 53c0e81 found no P1. Its P2, the release wait counting against the 2 s keep-open deadline when cua's window is the profile's last, is fixed (ruling 1354): the release and the protective New Tab page are sent together, and the release is still waited for. Its P3 is left under ruling 1350: it cannot touch the person's windows, tabs, selection or focus, and gives no false result. It is logged in
tech-debt-tracker.md.releasedset never shrinks (extension/background.jsL323–325). It keeps every released window id for the worker's lifetime, one per session that handed back a window. Fix: track the windows still eligible for activation instead, and drop them on release or closure.Which installs get this at merge
chrome://extensions.npm run extension:packzip). Until then it stays on 0.3.0 and today's placement.Nothing was packed or signed in this pull request.
Validation Evidence
npm testfails exactly main's 54 tests on the Linux VM, and nothing new. Every new test failed before its fix. Deleting the extension's release check makes the P1 reproduction fail again.Also
Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)