Skip to content

feat(desktop): add opt-in input captures - #174

Merged
ElbertePlinio merged 2 commits into
mainfrom
feat/desktop-input-captures
Sep 16, 2026
Merged

ElbertePlinio merged 2 commits into
mainfrom
feat/desktop-input-captures

Conversation

@ElbertePlinio

@ElbertePlinio ElbertePlinio commented Sep 15, 2026 •

Copy link
Copy Markdown
Member

Closes #153.
Closes #175.

Adds default-off capture: "after" or "both" to all seven desktop MCP input tools. Captures use existing verified run storage, attach to the same action, render together and qualify only when explicitly listed as inspected evidence. Typed metadata stays redacted; screenshots may contain visible text and must not be requested on sensitive screens.

Preserves partial-effect reporting without retrying input. Known-capped runs refuse capture before input. Dropped or uncertain artifact records return explicit errors with retained paths and input state; existing cap, locks and permissions are unchanged. Independent review found the original cap/linkage gap and accepted its repair.

The first candidate failed Ubuntu CI on same-position mousemove --sync. #175 removes only that motion wait from affected argv builders, retaining ordered requests on one X connection, validation, bounded subprocesses and one input permit. A managed persistent-Xvfb regression covers repeated move/click/double-click/positioned scroll and zero-distance drag. The original MCP repeated-coordinate live test is unchanged.

Current candidate: 9dda5c0, tree c0a9e83ba766f7260dba843d443c5c65b364afc0. All374 source SHA256/executable identities match the clean publication copy; the review worktree remains unstaged/uncommitted. A separate non-author final review accepted the pointer change and current combined capture integration on snapshot snap-a4bf98e26bba. Existing #153 reviewed source is unchanged.

Parent executed typecheck/build/lint and575 focused tests. Verified source-matched worker reports:126 tests with each of host xdotool4 and private Ubuntu Noble xdotool3; full tests and coverage each1918 passed. All runs retain four local skips: CI-only prerequisite assertion, two xterm-dependent cases because xterm is absent, and the missing-x11vnc negative case because x11vnc is installed. Controller complexity81, zero violations. Saved worker reports are not new parent full executions.

Historical evidence remains: original red CI; installer npm ETIMEDOUT; interrupted120/130-second full/coverage runs; and an earlier worker's unsafe fixed-display probe whose real-home isolation is unproven. Later green tests do not erase those limits or establish whole-home safety. No blind cleanup was performed.

Fresh exact-head CI must pass before merge. This is automated managed-Xvfb integration, not #156 real native-app acceptance. #154 guidance and #156 remain required; no release or Wayland changes are included.

@ElbertePlinio
ElbertePlinio merged commit b010eef into main Sep 16, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

desktop: avoid same-position pointer hangs with Ubuntu xdotool desktop: opt-in before and after captures on input tools

1 participant