Skip to content

Report malformed Qwen action values as retryable parse errors - #115

Draft
rudycelekli wants to merge 1 commit into
facebookresearch:mainfrom
rudycelekli:fix/qwen-retryable-values
Draft

rudycelekli wants to merge 1 commit into
facebookresearch:mainfrom
rudycelekli:fix/qwen-retryable-values

Conversation

@rudycelekli

Copy link
Copy Markdown

Malformed Qwen action values can escape as AttributeError, ValueError or OverflowError; the retry loop catches only ParseError, so an invalid model action aborts rather than requesting a corrected action. Non-string typed text and nonfinite waits also reach execution with invalid argument types/values.

Validate the arguments object and typed text, translate coordinate/scroll conversion failures to ParseError, and reject nonfinite or negative waits. Valid numeric strings and zero waits retain their behavior. The regression demonstrates invalid coordinates followed by a valid action successfully recover through the actual retry logic.

Isolated validation on Python 3.11.15: 18 new cases plus 40 existing parser cases passed (58 total); on main, 17 new cases fail. Whole parser/base/coordinate/registry modules execute actual source. Because AgentLab/BrowserGym are not installed in this bounded test environment, the local harness extracts ParseError verbatim from the project's pinned AgentLab commit and retry/UI-TARS helpers verbatim from upstream source. This validates parser behavior and retry flow, not real package imports.

Draft pending dependency-qualified package imports and the full application/browser suite. The submitted regression uses normal package imports for that environment; the isolated harness is retained as local evidence. No model/provider calls or full-suite success is claimed. Based independently on main 8cc8e366fc70a3ea32baed8d95d8709155c9ec08.

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Nov 4, 2026
@marksibrahim

Copy link
Copy Markdown
Contributor

thanks for you contribution!

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants