gstack/browse
Kaustav Mishra 66e3cb463e fix: close old pages before clearing map during handoff
When handing off from headless to headed mode, old pages were removed from
the pages map without being explicitly closed. This left Playwright Page
objects dangling with their event listeners and resources intact, causing
a resource leak.

The pattern for cleanup should match closeAllPages() and recreateContext(),
which both explicitly close pages before clearing the map:

  for (const page of this.pages.values()) {
    await page.close().catch(() => {});
  }
  this.pages.clear();

This ensures Playwright resources are properly released when switching to
headed mode, preventing memory accumulation on repeated handoff/resume cycles.

Fixes resource leak in interactive handoff workflow (headless → headed mode).
2026-04-04 00:26:43 +05:30
..
bin feat: multi-agent support — gstack works on Codex, Gemini CLI, and Cursor (v0.9.0) (#226) 2026-03-19 18:20:50 -07:00
scripts fix: Windows support — Node.js server fallback for Playwright (#255) 2026-03-20 12:22:11 -07:00
src fix: close old pages before clearing map during handoff 2026-04-04 00:26:43 +05:30
test feat: sidebar CSS inspector + per-tab agents (v0.13.9.0) (#650) 2026-03-30 12:51:05 -06:00
SKILL.md feat: Session Intelligence Layer — /checkpoint + /health + context recovery (v0.15.0.0) (#733) 2026-04-01 00:50:42 -06:00
SKILL.md.tmpl feat: sidebar CSS inspector + per-tab agents (v0.13.9.0) (#650) 2026-03-30 12:51:05 -06:00