Files
zeekayandGitHub 08cc636879 fix(server): harden Codex thread-gone and rollout-record recovery (#79)
- Broaden Codex thread-gone and rollout-record error classification in
  CodexAdapterV2 (handling thread not found/gone, missing rollouts, and
  rollout recorder failures).
- Ignore non-fatal rollout-record error notifications during active turns
  and recover turns that completed work before a teardown rollout-record
  error so active coding sessions are never crashed or discarded.
- Add unified native-thread recovery in startNativeTurn (reusing one
  startFreshNativeThread helper shared with ensureThread): when turn/start
  hits an unloaded or gone thread, attempt thread/resume first and fall
  back to a fresh native thread on the same workspace (emitting
  provider_thread.updated) so uncommitted edits survive.
- Treat thread-gone and rollout-record errors during unloadThread as clean
  teardown and always resolve threadClosings via one resolveThreadClosing
  helper so waiters cannot strand.
- Consolidate duplicate loaded-thread map deletion paths in
  ProviderSessionManager into withoutLoadedThread and invalidate stale
  cache entries when provider_thread.updated replaces nativeThreadRef.
- Add Vitest replay regression tests covering unloaded resume, gone-thread
  fresh recovery, non-fatal rollout-record completion, and clean unload.
2026-11-22 18:56:50 -08:00
..

Server

Node.js WebSocket server for the Hanzo Dev app.