Skip to content

Latest commit

 

History

History
17 lines (11 loc) · 1.07 KB

File metadata and controls

17 lines (11 loc) · 1.07 KB

Browser Sessions PR #64 — Review Findings

Must Fix

  • No close_all() on app exit — Chrome processes orphaned on quit → added browser_sessions.close_all().await before restore_terminal()
  • Temp dir collision — all sessions use same codey-browser-session-{pid}, second session overwrites first profile copy → added atomic counter: codey-browser-{pid}-{n}
  • Field naming_handler_task and _temp_dir have leading underscore (Rust "unused" convention) but are used in close() → renamed to handler_task and temp_dir

Should Fix

  • page_load_wait_ms unused — config option still exists but sessions used hardcoded NETWORK_SETTLE_MS → now uses config value via settle_ms() helper
  • Lock held during cleanup_expired() — calls browser.close().await while holding mutex; hung Chrome blocks all sessions

Nice to Have

  • Read-only tools could auto-approve — browser_list_sessions and browser_snapshot are read-only
  • Move docs/browser-sessions.md to research/ — consistency with other research docs