Repository navigation
fix(computer-use): one thread's action no longer expires another thread's snapshots of other apps - #114
Merged
Conversation
…ad's snapshots of other apps Every computer_action cleared every thread's snapshot receipts, so a thread driving one app made another thread's snapshot of a different app fail with "snapshot expired", whose message only mentioned the ten-minute expiry. An action now clears its own thread's receipts, so an uncertain write is never replayed, and every thread's receipts of the app it acted on. Other apps' snapshots stay usable; steps re-find their element and stop on any change. The expired message now names the other cause.
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.
two agent threads were driving apps at the same time and one of them kept getting "take a fresh computer_snapshot before acting. snapshots expire after ten minutes" on snapshots that were seconds old. every
computer_actioncleared every thread's snapshots, so the other thread acting on t3 and helium killed my snapshot of iphone mirroring between my snapshot and my click. the message only mentioned the ten-minute expiry, so the agent read it as a broken snapshot and went off building workarounds (focus-stealing ones)now an action clears its own thread's snapshots (so an uncertain write still never replays) and everyone's snapshots of the app it acted on. snapshots of other apps stay usable, which the code already assumed was safe since steps re-find their element and stop on any change. the expired message now also says another agent acting on the same app can cause it
proof: from 11:45 to 11:50 am et on 2026-11-26 all 10 of these errors had another thread's
computer_actionbetween the snapshot and the act, e.g. snapshot 11:44:58, other thread acts 11:45:02, act rejected 11:45:12