MCP: browser_goto silently no-ops after a submit, and browser_click misses links that are visible in the snapshot
Bug Details
Version: Stoic Browser 1.9.1 on macOS 26.5.2. MCP connection: generic client, preset full, one workspace.
Three reproducible issues found while driving stoic-mcp through a scripted task suite.
1) browser_goto silently no-ops after a form submit (worst one)
- Open https://en.wikipedia.org/wiki/Main_Page, submit the search form (browser_type + browser_press_key Enter), then call browser_goto to another URL.
- Expected: navigation happens. Actual: the call returns the PREVIOUS page's url/title with isError: false. The next browser_extract then reports "Nothing matched ... on this page" because it is still on the old page.
- Frequency: 2 of 3 runs in a session that had just submitted a form.
- Ask: return an explicit error (NAVIGATION_PENDING / NAVIGATION_SUPERSEDED) instead of echoing stale state, or retry internally. Silent stale state breaks any multi-step automation.
2) browser_click cannot resolve an element that is present and visible
- Open https://www.im-khang.com/blogs/
- browser_click with {selector: "a[href*='/blogs/what-a-client-site']"}, then {text: "What a Client Site Taught Me"}, then {label: ...}, then the full-href selector: all fail instantly (~0.01 s) with TARGET_NOT_FOUND: No visible element matched the requested target. This error is retryable.
- browser_get_state (compact) lists the same element as link "NOV 28, 2026 What a Client Site Taught Me ..." [ref=e7] (href=/blogs/what-a-client-site-...), and browser_click_ref {ref: "e7"} navigates fine.
- So the element is visible to the snapshot but invisible to the click resolver.
- Ask: use the same visibility predicate as the snapshot, and include the candidate count in the error.
3) browser_type {pressEnter: true} does not submit a plain server-rendered form
- https://en.wikipedia.org/wiki/Special:Search -> typing into the visible search input with pressEnter: true leaves the URL unchanged; a separate browser_press_key Enter plus browser_wait is required.
- Ask: document that pressEnter is only a keystroke, or dispatch the form submit.
4) Doc gap: full AX snapshot is the default on every call
- Unless callers pass snapshotMode: "none", every call returns the whole accessibility tree: 10-40k chars per call on typical pages, dominating the response even for a two-element extract. This is not stated in the tool descriptions or the agent guide.
- Ask: document snapshotMode: "none" as the default for scripted use, and consider defaulting to none when a schema or target is supplied.
Happy to re-run any of these against a build with debug logging enabled. Available in this thread.
Reproducibility: Unknown · Impact: Minor issue
Environment
- VERSION
- unknown
- OS
- —
- ARCH
- —
- CHANNEL
- —
Resolution progress
SHIPPED · 1.10.0PENDING
REVIEWING
—
IN PROGRESS
COMPLETED
- — Khang Nguyen submitted this request
- — Khoa - StoicSoft Team moved it to In progress
- — Khoa - StoicSoft Team moved it to Completed
Discussion1
- Khang NguyenSign in to reply
More data from a scripted task suite run today (same build, 1.9.1, preset
full,snapshotMode: "none"on every call). Two things to add.A) The click resolver fails on plain, unambiguous links — not just one site
- https://news.ycombinator.com/ ->browser_click {selector: "a.morelink"}failsTARGET_NOT_FOUND; so doesbrowser_click {text: "More"}. Two calls, both instant, both failing.
-browser_get_state(compact) right after that returns the element:link "More" [ref=e191], andbrowser_click_ref {ref: "e191"}navigates to?p=2in 357 ms.
- Same story on booking.com:browser_click {selector: "[data-testid='destination-container']"}fails twice, while typing straight into the hidden input next to it works.
- Net effect: every navigation in a script becomes snapshot -> find ref -> click_ref, i.e. 3 calls instead of 1, and the snapshot is the expensive part.B) A failed
browser_clickreturns the entire accessibility tree as its error payload
-browser_clickfailure response on news.ycombinator.com: 12,449 characters, of which everything after the first line is a full snapshot.snapshotMode: "none"does not suppress it.
- On the same page,browser_get_state(compact) is 12,476 chars andbrowser_click_refsuccess is 208 chars.
- In one 5-task run this made the click workaround cost ~26k chars for two page turns, versus ~450 chars for the same two page turns driven by a direct click in another driver. If the goal is agent efficiency, error payloads are the last place to dump a snapshot — please makesnapshotMode: "none"actually mean none, in success and error paths.C)
browser_type {pressEnter: true}submits before the app has the value
- On a JS app (wolframalpha.com) it produced a URL with the query in it and a "Wolfram|Alpha doesn't understand your query" page. Typing, waiting ~1 s, then a separatebrowser_press_key Entergives the correctIndefinite integral: 2 x sin(x) - (x^2 - 2) cos(x) + constant.
-pressEnter: truelooks like it fires the key in the same tick as the input events, so framework-side state never catches up. Worth a small settle delay or a documented recommendation.Repro scripts for all of the above available on request.
Sign in to comment, vote and follow this request.
Sign in to reply