fix(agent): add double_click support and anti-loop recovery#148
Merged
Conversation
…rGrounderAgent - Add double_click to planner prompt action types with guidance to use it for opening applications, files, and desktop icons (fixes Windows 11 desktop icons requiring double-click) - Handle double_click in _build_action_from_structured by routing through the grounder for coordinates and overriding the returned click type - Add anti-loop detection that checks the last 3 planner instructions for exact string match and injects a WARNING into the planner prompt forcing a different strategy (fixes agent repeating the same failed action 15+ times) - Add dialog dismissal awareness to planner prompt (dismiss popups, notifications, and dialog boxes before attempting target actions) - Add 10 new tests covering double_click parsing, anti-loop detection, and dialog dismissal prompt content Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
abrichr
added a commit
that referenced
this pull request
Mar 19, 2026
…lestones) Customer's exact task UUID (44ee5668). Claude planner + UI-Venus grounder on WAA VM with all fixes applied (#147, #148). 6 steps: opened Chrome history → selected YouTube entries → clicked Delete → confirmed dialog → verified history cleared. Tested: Docker build verified, container booted, experiment completed. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Two bugs fixed:
Bug #3: double_click — Windows 11 desktop icons need double-click. Added
double_clickas action type in planner prompt + action handling. Adapters already support it.Bug #4: error recovery — Anti-loop detection after 3 identical actions injects forced redirect. Dialog dismissal guidance added to planner prompt.
51 tests passing (10 new).
Test plan
🤖 Generated with Claude Code