gstack/browse/src
Garry Tan 318ffdbdf0
fix: js statement wrapping + click auto-routes option to selectOption (v0.4.5) (#117)
* fix: js statement wrapping + click auto-routes option to selectOption

Bug 1: js command wrapped all code as expressions — const, semicolons,
and multi-line code broke with SyntaxError. Added needsBlockWrapper()
and wrapForEvaluate() helpers (shared with eval) to detect statements
and use block wrapper {…} instead of expression wrapper (…).

Bug 2: clicking <option> refs hung forever because Playwright can't
.click() native select UI. Click handler now checks ARIA role + DOM
tagName and auto-routes to selectOption() via parent <select>.

Bug 3: click timeouts on <option> elements gave no guidance. Now
throws helpful error: "Use browse select instead of click."

* chore: bump version and changelog (v0.4.5)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-16 21:50:43 -05:00
..
browser-manager.ts fix: js statement wrapping + click auto-routes option to selectOption (v0.4.5) (#117) 2026-03-16 21:50:43 -05:00
buffers.ts feat: Phase 3.5 — cookie import, QA testing, team retro (v0.3.1) (#29) 2026-03-13 00:31:41 -07:00
cli.ts feat: screenshot element/region clipping (v0.3.7) (#56) 2026-03-14 12:47:42 -07:00
commands.ts feat: screenshot element/region clipping (v0.3.7) (#56) 2026-03-14 12:47:42 -07:00
config.ts feat: TODOS-aware skills, 2-tier Greptile replies, gitignore fix (#61) 2026-03-14 20:15:11 -07:00
cookie-import-browser.ts feat: Phase 3.5 — cookie import, QA testing, team retro (v0.3.1) (#29) 2026-03-13 00:31:41 -07:00
cookie-picker-routes.ts feat: v0.3.2 — project-local state, diff-aware QA, Greptile integration (#36) 2026-03-13 18:10:56 -07:00
cookie-picker-ui.ts feat: Phase 3.5 — cookie import, QA testing, team retro (v0.3.1) (#29) 2026-03-13 00:31:41 -07:00
find-browse.ts feat: daily update check + /gstack-upgrade skill (v0.3.4) (#42) 2026-03-13 22:17:25 -07:00
meta-commands.ts feat: QA restructure, browser ref staleness, eval efficiency metrics (v0.4.0) (#83) 2026-03-15 23:55:39 -05:00
read-commands.ts fix: js statement wrapping + click auto-routes option to selectOption (v0.4.5) (#117) 2026-03-16 21:50:43 -05:00
server.ts fix: enrich SKILL.md docs to pass LLM evals, upgrade judge to Sonnet 4.6 (#43) 2026-03-13 22:14:14 -07:00
snapshot.ts feat: QA restructure, browser ref staleness, eval efficiency metrics (v0.4.0) (#83) 2026-03-15 23:55:39 -05:00
write-commands.ts fix: js statement wrapping + click auto-routes option to selectOption (v0.4.5) (#117) 2026-03-16 21:50:43 -05:00