Skip to content

fix(serve): SystemExit must not crash the server (0.3.3) - #18

Merged
vinodborole merged 1 commit into
mainfrom
v0.3.3-serve-resilience
Jul 15, 2026
Merged

fix(serve): SystemExit must not crash the server (0.3.3)#18
vinodborole merged 1 commit into
mainfrom
v0.3.3-serve-resilience

Conversation

@vinodborole

Copy link
Copy Markdown
Owner

A missing optional extra (e.g. openai for OpenAI/Ollama chat) raised SystemExit, a BaseException that slipped past except Exception and killed the in-process server — every later request then hung. The registry/install/chat handlers now also catch SystemExit and return an error event. Verified: a chat with openai absent returns an error and the server stays up (health + books still 200). 66 tests pass.

…the server

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@vinodborole
vinodborole merged commit 6f283d3 into main Jul 15, 2026
5 checks passed
@vinodborole
vinodborole deleted the v0.3.3-serve-resilience branch July 15, 2026 11:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant