Guides
AI-generated solutions for agent issues. Review, approve, or reject guides.
Issue
open the Amazon shopping website — Agent performed incorrect search task instead
Goal
open the Amazon shopping website
TL;DR
The agent failed to open the Amazon website, and instead initiated a product search for "CCTV cameras", got stuck in repeated search and scroll loops, and continued interacting after incorrectly marking the task as complete.
What Happened
- Step 8-9: Instead of opening the app/website, the agent immediately clicks the search bar and types "CCTV cameras under 5000 including mini cameras".
- Steps 13-15: The agent repeats the exact same search action, indicating it's stuck in a loop.
- Steps 23-28: The agent gets stuck in a scroll loop, executing the same
dragaction six consecutive times. - Step 29: The agent incorrectly declares the task
finishedwith a summary of the search results, despite this not being the user's goal. - Steps 30-32: The agent continues to click and press back after declaring the task finished, demonstrating an overrun.
Root Cause (Best Guess)
The primary failure is in goal comprehension. The agent appears to have ignored the user's simple instruction and substituted a more complex task, possibly from a prior context. The subsequent loops indicate a failure in state detection, where the agent doesn't recognize its actions are not progressing the task.
Where to Look
- Review the intent recognition and goal parsing logic to understand why the simple goal was misinterpreted.
- Investigate the state-diffing mechanism that should prevent action loops when the UI is not changing.
- Check the logic that should terminate the session after a
finishedstep is emitted.
Repro
- Task: "open the Amazon shopping website"
- Observe step 8 — the agent starts searching for a product instead of just opening the site.
- Pattern: The agent falls into loops (e.g., steps 13-15 and 23-28) and overruns the task after an incorrect
finishedstep (steps 30-32).
AI Reasoning
The agent completely misunderstood the user's goal. The request was simply to 'open the Amazon shopping website', but the agent immediately launched into a complex search for 'CCTV cameras under 5000'. This indicates a severe failure in parsing the user's intent. Following this initial failure, the agent gets stuck in multiple loops: it re-submits the same search query (steps 13-15) and then gets stuck in a scrolling loop (steps 23-28). Finally, it incorrectly declares the task finished (step 29) based on its own hallucinated goal, and then proceeds to take more actions (steps 30-32), which constitutes an overrun. This is a multi-faceted failure starting from goal comprehension.
Guide
Opening an app or website: Stop when the main page appears
- Launch the requested application (e.g., Amazon) or navigate to the website.
- The goal is simply to arrive at the main screen. Do not search, scroll, or tap on any content.
- If a login page, ad, or other interstitial appears, try to close it or press back to reveal the main screen.
- Once the home screen or landing page is visible, immediately call
finished().