Skip to content

fix: emit SSE errors for chat failures - #24

Merged
haolpku merged 1 commit into
OpenDCAI:mainfrom
DevChiniwala:codex/emit-chat-stream-errors
Sep 20, 2026
Merged

haolpku merged 1 commit into
OpenDCAI:mainfrom
DevChiniwala:codex/emit-chat-stream-errors

Conversation

@DevChiniwala

Copy link
Copy Markdown
Contributor

The /api/chat generator propagated provider/loop exceptions after partial output, leaving clients with a truncated stream and no terminal error event. Convert ordinary stream failures into the existing SSE error event while preserving cancellation propagation. The message contains only the exception type, avoiding provider text or credentials in the wire response. Added an ASGI regression that raises after a partial event. Validation: 2 HTTP API tests passed; no route or success-response changes; targets main.

Copilot AI lite review requested due to automatic review settings September 17, 2026 11:00

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@haolpku
haolpku merged commit dcf1322 into OpenDCAI:main Sep 20, 2026
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.

3 participants