Skip to content

Handle OpenAI-compatible SSE framing and completion - #1879

Open
mikemikimike wants to merge 1 commit into
Compendiq:devfrom
mikemikimike:fix/1722-provider-sse-parser
Open

mikemikimike wants to merge 1 commit into
Compendiq:devfrom
mikemikimike:fix/1722-provider-sse-parser

Conversation

@mikemikimike

Copy link
Copy Markdown

Fixes #1722

#1722

Summary

  • Parse OpenAI-compatible SSE events incrementally, including CRLF, named events, comments, and chunk boundaries.
  • Require an explicit [DONE] event and surface incomplete provider streams as failures.
  • Record Generate audit and Improve state as errors when provider streams fail.

Validation

  • npm run typecheck passed.
  • Focused backend regressions: 142 passed, 2 skipped.
  • vitest run --config e2e/vitest.config.ts: 30 passed.
  • npm test -w frontend: 5,840 passed, 11 failed in 7 files.
  • npm run build -w frontend: failed on the existing CSP hash mismatch.

@laboef1900
laboef1900 force-pushed the fix/1722-provider-sse-parser branch from 12ca51e to 965ea24 Compare November 6, 2026 06:56
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.

[P2] Provider SSE parser silently drops valid CRLF and named events

1 participant