Repository navigation
docs(mcp): say that an after capture can precede the redraw - #417
Merged
Merged
Conversation
MCP input tools take the after capture as soon as input completes, so under load it can show the screen before the app redraws. An agent could read that as a failed input and retry it. The capture description and the README now say so and point to desktop_wait with the before capture as the baseline. Closes #223.
This was referenced Oct 28, 2026
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.
MCP input tools take the
aftercapture as soon as input completes, so it can show the screen before the app redraws. An agent could read that unchanged PNG as a failed input and retry it.This change documents the limit instead of adding a settle. The shared capture description on the MCP input tools and the README now say that an unchanged after capture does not prove the input failed. With
capture: "both", they point todesktop_waitwithbaselineset to the before capture's path. The README also says thatreason: "timeout"does not prove a failure, because some input changes nothing on screen. Capture timing is unchanged.No device pass: the change is tool description text and README prose, with no new behavior to drive. The existing live test
desktop-input-captures-live.test.tsalready runs this recipe against a real Xvfb, and it passed after the rebase on main.Reviewed with sol-loop: 2 rounds with GPT-6.1 Sol (high). Sol verdict: approved.
Round 1 found that the recipe needs a before PNG, which
capture: "after"does not make (S1), and thatdesktop_waitalso returns a timeout when input has no visible effect (S2). Both were fixed in the text.Closes #223
desktop_click,desktop_double_click,desktop_drag,desktop_move,desktop_scroll,desktop_key,desktop_typedesktop_waitbaseline recipe; the test fails for all 7 tools onmainpackages/mcp-server/test/desktop-input-captures.test.tscapture: "after"has no before PNG; a timeout with no visible changecapture: "both"and says a timeout is not a failureREADME.mdcapture sectiondesktop-input-captures.test.ts,tools.test.ts,desktop-input-captures-live.test.tsdocs/releases/UNRELEASED.mdstill holds the tagged 0.7.1 notes until they are published and resetRelease note for the next version: "The MCP input tool descriptions and the README now say that an after capture can precede the app's redraw, and show how to wait for the change with
desktop_wait. (#223)"Checks: focused vitest suites above,
bun run typecheck,bun run lint, PickCheck (no new or worsened violations).