Skip to content

fix: stabilize claude streaming event parsing#16

Merged
rexdotsh merged 7 commits into
mainfrom
fix/claude-stream-stalls
Apr 3, 2026
Merged

fix: stabilize claude streaming event parsing#16
rexdotsh merged 7 commits into
mainfrom
fix/claude-stream-stalls

Conversation

@rexdotsh
Copy link
Copy Markdown
Owner

@rexdotsh rexdotsh commented Apr 3, 2026

Summary

  • switch Claude SSE rewriting to full event-boundary parsing modeled after pi instead of line-by-line rewriting
  • stream transformed Claude responses from a push loop so long sparse thinking gaps do not stall client output
  • add a regression test for fragmented multiline Claude SSE events

Testing

  • bun test tests/providers/proxy-contract.test.ts
  • bun typecheck

@rexdotsh rexdotsh merged commit 46c6c9e into main Apr 3, 2026
2 checks passed
@rexdotsh rexdotsh deleted the fix/claude-stream-stalls branch April 9, 2026 03:38
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