Feature requestCompleted

Actions should verify a post-condition (auto-settle) instead of returning immediately

Khang NguyenPosted Shipped in 1.10.0

The problem

Two behaviours cost real tasks and produce silent wrong results rather than errors.

browser_type with pressEnter:true submits before the app has registered the value. On wolframalpha.com that produced a URL with the query in it and a page saying "Wolfram|Alpha doesn't understand your query". Typing, waiting about one second, then a separate browser_press_key Enter returned the correct indefinite integral. Same input, same page.

browser_goto after a submit returns the stale page with isError:false, so the next extract reports "nothing matched" and the agent has no signal that navigation did not happen.

Ask: an optional post-condition on click, type, press and goto, and on whatever batch form this ends up with:
expect: { urlContains | urlMatches | textIncludes | selectorVisible | inputValue, timeoutMs }
Response should say what actually happened: {changed:true|false, url, observed:"first 200 chars"} and fail loudly when the condition is not met. On failure return the observed state, not the full tree.

That removes the "did it work?" guesswork that currently forces agents to poll with extra calls, and it turns silent no-ops into actionable errors.

Roadmap progress

SHIPPED · 1.10.0
  1. PENDING

  2. REVIEWING

    —

  3. PLANNED

    —

  4. IN PROGRESS

  5. COMPLETED

  • — Khang Nguyen submitted this request
  • — Khoa - StoicSoft Team moved it to In progress
  • — Khoa - StoicSoft Team moved it to Completed

Discussion0

Newest first
  • No comments yet. Add context or ask a question below.

Sign in to comment, vote and follow this request.

Sign in to reply