v3.16.2 β Don't crash on early request failure
Fixed
- A failed request no longer crashes the whole CLI. When a model request failed early (e.g. a 404 for an unavailable model, or a 401), the failover path checked an uninitialized
_stream_interruptedflag and raisedAttributeError, which bubbled all the way up and dropped you back to the shell β losing your session. The flag is now initialized at startup. - The REPL is crash-resistant in general. Any unexpected error while handling one input is now logged to
~/.kodiqa/error.log, shown as a friendly message, and returns you to the prompt with your session intact β instead of exiting. (Ctrl+C still quits.)
Tests
Regression tests for the failover early-failure path and _stream_interrupted initialization. 473 total, ruff clean.
π€ Generated with Claude Code