v1.2.1
Fixes
- #8:
pi -p --no-sessionno 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.