Skip to content

v3.16.2 β€” Don't crash on early request failure

Choose a tag to compare

@eniz1806 eniz1806 released this 06 Jun 21:15

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_interrupted flag and raised AttributeError, 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