Repository navigation
fix(computer-use): reading an app no longer snaps you back from a link you clicked - #113
Merged
Merged
Conversation
…k you clicked The focus guard ran for computer_snapshot too. A snapshot never brings an app forward, so the only front-app change the guard could see during one was the user's own, and a click inside the user's app that opened the target (a link opening the browser) read as the target stealing focus and got sent back. Snapshots now leave the guard as it is: a standalone snapshot starts none, and a snapshot inside an action batch keeps the batch's guard watching for late steals.
Thread transfer impact✅ Thread transfer remains within every enforced ceiling.
Other scenariosAll 64 scenario measurements match All 64 scenario measurements
Baseline: Scenario and decoded snapshot size10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.
Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed. |
maschwenk
marked this pull request as ready for review
November 26, 2026 20: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.
i clicked a link in t3 that opened helium while an agent was taking a
computer_snapshotof helium, and t3 yanked me straight back to t3. the focus guard was running for the snapshot and read my click (inside t3, my own app) as helium coming forward on its own, so it sent helium back behind t3snapshots never bring an app forward (the audit in the pr that added the guard found the same), so a guard there can only misread my own switches. now a standalone snapshot doesn't start the guard at all, and a snapshot inside an action batch (goal steps) leaves the batch's guard running so late steals after an action still get sent back
the "a click inside your own app isn't a switch" rule stays as is for actions and opens, since the looser rule missed real steals there
proof: the unified log on 2026-11-26 at 11:09:49 am et shows mouse down/up in t3, t3 asking launchservices to open a url, helium coming forward, and the computer-use worker (mid
computer_snapshot) putting t3 back 130 ms later