Skip to content

v1.2.1

Choose a tag to compare

@samfoy samfoy released this 07 May 02:34

Fixes

  • #8: pi -p --no-session no longer crashes on exit with a stale-ctx error.

The extension was scheduling setTimeout callbacks (5s status-clears, 10min sync race-timeout) that fired after session_shutdown, tried to touch ctx.ui, and hit assertActive() — producing non-zero exit codes that broke shell scripts piping pi output.

All one-shot timers now route through a tracked scheduleTimer() wrapper. session_shutdown cancels every pending timer and sets a shuttingDown flag so any racing microtask bails before touching ctx.