Skip to content

fix(agent): add double_click support and anti-loop recovery#148

Merged
abrichr merged 1 commit into
mainfrom
fix/double-click-and-recovery
Mar 19, 2026
Merged

fix(agent): add double_click support and anti-loop recovery#148
abrichr merged 1 commit into
mainfrom
fix/double-click-and-recovery

Conversation

@abrichr
Copy link
Copy Markdown
Member

@abrichr abrichr commented Mar 19, 2026

Summary

Two bugs fixed:

Bug #3: double_click — Windows 11 desktop icons need double-click. Added double_click as 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

  • 51 tests passing
  • WAA test: double-click opens Chrome desktop icon
  • WAA test: planner dismisses dialog after 3 failed attempts

🤖 Generated with Claude Code

…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 abrichr merged commit 1c9a1bb into main Mar 19, 2026
1 check passed
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant