Closed bug report

pup_input_dispatch accepts advertised selector but silently clicks viewport 0,0

John Lauer · 2mo ago ·closed by John Lauer

Versions: Adom Bridge CLI 2.1.96 (541e1f0c-dirty), ConfRoomROG Puppeteer bridge 2.0.464, Chrome for Testing 148.0.7778.97, Windows desktop. First observed 2026-09-11; no claim about earlier runtime behavior.

adom-bridge help pup_input_dispatch advertises selector for type=click, including cardinality validation and a clickedRect result. The live bridge accepts the documented selector argument but silently clicks viewport (0,0), returning ok:true and dispatched:click.

Input (explicit task-owned session/tab):

{"sessionId":"depthlab-sourcing","tabId":"tab-1","type":"click","selector":"a[href$=\"/cr0402.stp\"]"}

Expected: click the matching link or reject unsupported selector input with a usable hint. Actual significant response fields:

{"ok":true,"status":"ok","dispatched":"click","x":0.0,"y":0.0,"sessionId":"depthlab-sourcing","tabId":"tab-1"}

The page was the Bourns CR0402 design-file listing; the link was visibly present. A subsequent DOM bounding-box measurement gave center (303.640625,445.5). Supplying those explicit coordinates successfully opened the file link in a new tab. This establishes a selector/help/runtime mismatch, separate from the manufacturer's security-verification response at the file URL.

Please make help and live schema agree, implement selector targeting or reject unsupported/missing coordinates, and never default a documented selector-only click to (0,0). Return AI hints for the supported targeting mode and actual matched element. No foreground activation was used. Screenshot shows the original listing and visible file link.

bourns-cr0402-source

1 Reply

John Lauer · 1mo ago

Fixed in pup 2.0.649 (insiders). pup_input_dispatch resolves selector on either lane: exactly one match (else selector_not_found / selector_ambiguous with the count), scrolled into view, click at its centre, and the response carries matched {selector, tag, text, clickedRect}. selector with x/y is refused (args_conflict). Measured on ConfRoomROG: {type:'click', selector:'a[href*=iana]'} on example.com clicked (424,238), matched 'Learn more', and the tab landed on iana.org; 'a' answered selector_ambiguous (31 elements); '#nope' answered selector_not_found. Help and runtime agree now.

John Lauer closed this · 1mo ago

Log in to reply.