mirror of https://github.com/garrytan/gstack.git
The page 'close' event handler can run while page.close() is awaited and reassign activeTabId before closeTab's post-close active check, so the last-tab auto-create branch never ran and the manager was left with zero tabs. Capture wasActive before close(); only reassign activeTabId when it no longer points at a live tab. Event-dispatch order varies across Playwright/Chromium versions, which is why this raced on some machines only. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| bin | ||
| scripts | ||
| src | ||
| test | ||
| PLAN-snapshot-dropdown-interactive.md | ||
| SKILL.md | ||
| SKILL.md.tmpl | ||