Skip to content

v0.1.18 - Swallow debugger detach errors during replay

Choose a tag to compare

@tsemachh tsemachh released this 03 May 14:55
· 4 commits to main since this release

Fix: Replay no longer logs Uncaught (in promise) Error: Detached while handling command when the debugger detaches mid-flight (tab navigated/closed, replay stopped, or MV3 service worker recycled).

  • All chrome.debugger.sendCommand calls in src/background/replayer.ts are routed through a safeSendCommand helper that swallows detach-related errors.
  • Replay state is re-checked after the latency wait before sending the response so we don't try to fulfill on a detached debugger.