{"data":{"slug":"discovered-7fad1fa38f43557ff8e9751375ccdcbdb8cf23024370071d","title":"Rjv Agent Browser Notes","summary":"Mechanism: field notes layered on the vendor agent-browser skill covering failures it omits when driving real React apps (Radix\/shadcn, Inertia, react-hook-form). Load with agent-browser. Triggers: clicks report success but nothing happens, hover or tooltips never fire, fill does not stick, Select or Tab will not open, menu picks wrong row, cart or form silently empties, doctor says pass but page is dead, dev-server reloads wipe state, several agents share one browser.","url":"https:\/\/skillshunter.net\/skills\/discovered-7fad1fa38f43557ff8e9751375ccdcbdb8cf23024370071d","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/discovered-7fad1fa38f43557ff8e9751375ccdcbdb8cf23024370071d","markdown_url":"https:\/\/skillshunter.net\/skills\/discovered-7fad1fa38f43557ff8e9751375ccdcbdb8cf23024370071d.md","download_url":"https:\/\/skillshunter.net\/skills\/discovered-7fad1fa38f43557ff8e9751375ccdcbdb8cf23024370071d\/download","category":{"slug":"software-development","name":"Software & Development"},"editor_note":"Before running commands, ensure the agent has a dedicated session using `AGENT_BROWSER_SESSION=<name>` to avoid shared browser issues. For date inputs, use the native setter method as `fill` does not work for `type=\"date\"`. Confirm input reaches the page by checking for pointer events in `window.__s` after mouse movements.","instructions":"---\nname: rjv-agent-browser-notes\ndescription: \"Mechanism: field notes layered on the vendor agent-browser skill covering failures it omits when driving real React apps (Radix\/shadcn, Inertia, react-hook-form). Load with agent-browser. Triggers: clicks report success but nothing happens, hover or tooltips never fire, fill does not stick, Select or Tab will not open, menu picks wrong row, cart or form silently empties, doctor says pass but page is dead, dev-server reloads wipe state, several agents share one browser.\"\n---\n\n# agent-browser: what the vendor skill leaves out\n\nRead the vendor skill first (`agent-browser skills get core`). Each rule below cost a real\ndebugging session; two produced false bug reports.\n\n## Find your symptom\n\n| Symptom | Go to |\n|---|---|\n| Every command says `\u2713 Done` but nothing changes; hover or tooltips never fire; `doctor` passes | \u00a71 dead session |\n| Keyboard input seems ignored | \u00a71 keys |\n| Resize did nothing | \u00a71 viewport |\n| A Select, Tab, Popover or Combobox will not open | \u00a72 Radix triggers |\n| Click reports `covered by <overlay>` in a dialog | \u00a72 scroll first |\n| `fill` does not stick, or a date input stays empty | \u00a72 native setter |\n| A menu picks the wrong row, or the cart or form silently empties | \u00a72 two `eval`s; \u00a73 closed menus |\n| React breaks for the rest of the run | \u00a72 no `.remove()` |\n| Text read from the page misses what was typed | \u00a73 `.value` |\n| A field looks like a server error, or a toast looks like success | \u00a73 capture responses, check the datastore |\n| Form state vanished on its own | \u00a74 Vite reload |\n| A 500 that does not repeat; timestamps look hours off | \u00a74 noise |\n| Several agents share one browser | \u00a74 sessions |\n\n## 1. Prove input reaches the page before blaming the app\n\nA dead session returns `\u2713 Done` to every command while no real input lands. `doctor` still\npasses. Run this before filing \"hover doesn't work\", \"overlay swallows clicks\" or \"clicking X\ndoes nothing\":\n\n```bash\nagent-browser eval '(()=>{window.__s=[];[\"pointermove\",\"pointerover\"].forEach(n=>document.addEventListener(n,e=>window.__s.push(n),true));return \"ok\"})()'\nagent-browser mouse move 500 400; sleep 1; agent-browser mouse move 520 420; sleep 1\nagent-browser eval '(()=>JSON.stringify(window.__s.slice(0,3)))()'   # [] = dead\n```\n\nDead: `agent-browser close`, reopen, log back in.\n\n**Keys** can fail on their own. Push `e.key` from a `keydown` listener into `window.__k`, press\n`Tab`, read it back. Empty means every keyboard conclusion is void.\n\n**Viewport**: confirm any state you set by reading it back in the page; the exit code proves\nnothing. Resizing is `set viewport <w> <h>`; bare `viewport` is a silent no-op. Check\n`window.innerWidth`.\n\n## 2. Clicking and typing in React\n\n- Ordinary `<button>`: JS `.click()` in `eval` is fine.\n- Radix \/ shadcn triggers (Select, Tabs, Popover, Combobox) ignore `.click()`. Use a snapshot\n  ref, or dispatch the pointer sequence:\n\n```bash\nagent-browser eval '(()=>{const e=document.querySelector(SEL); e.scrollIntoView({block:\"center\"});\n[\"pointerdown\",\"mousedown\",\"pointerup\",\"mouseup\",\"click\"].forEach(t=>\n  e.dispatchEvent(new PointerEvent(t,{bubbles:true,cancelable:true,pointerId:1,button:0,buttons:1})));\nreturn \"clicked\"})()'\n```\n\n- Rows below the fold in a dialog report `covered by <overlay>`. `scrollIntoView` first.\n- react-hook-form ignores `fill`, and `fill` never sets `type=\"date\"`. Use the native setter:\n\n```bash\nagent-browser eval '(()=>{const el=document.querySelector(SEL);\nObject.getOwnPropertyDescriptor(HTMLInputElement.prototype,\"value\").set.call(el,VALUE);\n[\"input\",\"change\"].forEach(t=>el.dispatchEvent(new Event(t,{bubbles:true}))); return el.value})()'\n```\n\n- Pick and confirm in two `eval`s with `sleep 2` between. One `eval` races React and\n  empties the cart.\n- To undo a DOM change, reload the page. Calling `.remove()` on a node breaks React for the\n  rest of the run.\n\n## 3. Reading state without faking bugs\n\n- `innerText` leaves out input values. Read `.value`, by `data-test`.\n- Closed menus and dialogs stay mounted. Scope queries to `[data-state=open]`.\n- To tell whether a red outline came from the server, hook `XMLHttpRequest` in `eval`, push\n  responses with status >= 400 into `window.__cap`, and read that. The outline alone proves\n  nothing.\n- A green toast only means a 200. Check the datastore with a small inspect script after every\n  send.\n\n## 4. Noise that looks like a bug\n\n- A Vite full reload (`[vite] connecting...` in the console) wipes form state.\n- Another agent's half-saved file causes passing 500s. Re-run the request once; report the\n  500 only if it repeats.\n- Logs are often in UTC.\n- Give each agent its own session: `AGENT_BROWSER_SESSION=<name>`.\n\n## 5. Keep a driver file\n\nOne sourced shell file per project: base URLs, fixture ids, login, navigation, and the helpers\nabove. A run that starts with `source .\/ab.sh` is reproducible.\n","use_cases":["Debugging dead sessions where commands report success but no changes occur","Handling Radix\/shadcn triggers that ignore `.click()`","Using native setters for `type=\"date\"` inputs","Capturing server responses to identify red outlines from the server"],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/rjvim\/ai-skills\/blob\/9a942086adef21dbd0c061d9d9e8fd5f43328bf6\/skills\/rjv-agent-browser-notes\/SKILL.md","source_commit":"9a942086adef21dbd0c061d9d9e8fd5f43328bf6","license":null,"version":null,"listing_approved_at":"2026-12-03","created_at":"2026-12-02T09:09:33.000000Z","updated_at":"2026-12-03T16:19:55.000000Z","seo_title":"Rjv Agent Browser Notes - Field Notes for Agent-Browser Skill","seo_description":"Field notes for the agent-browser skill, covering common issues when driving real React apps with Radix\/shadcn, Inertia, and react-hook-form. Includes workarounds for Rad","seo_keywords":["agent-browser","react debugging","radix triggers","shadcn","react-hook-form","browser automation","field notes","rjv-agent-browser-notes"]}}