gstack/browse
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
..
bin Merge remote-tracking branch 'origin/main' into v0.3.6-qa-upgrades 2026-03-14 02:35:48 -05:00
src fix: js statement wrapping + click auto-routes option to selectOption (v0.4.5) (#117) 2026-03-16 21:50:43 -05:00
test fix: js statement wrapping + click auto-routes option to selectOption (v0.4.5) (#117) 2026-03-16 21:50:43 -05:00
SKILL.md feat: always-on ELI16 + branch detection (v0.4.3) (#108) 2026-03-16 12:27:47 -05:00
SKILL.md.tmpl feat: contributor mode, session awareness, recommendation format (#90) 2026-03-16 01:45:50 -05:00