Skip to content

Compact persisted stream chunks#370

Merged
FredKSchott merged 1 commit into
mainfrom
fix/compact-stream-chunk-persistence
Jun 25, 2026
Merged

Compact persisted stream chunks#370
FredKSchott merged 1 commit into
mainfrom
fix/compact-stream-chunk-persistence

Conversation

@FredKSchott

Copy link
Copy Markdown
Member

Summary

  • persist compact stream deltas instead of repeated cumulative assistant partials
  • retain minimal provider metadata needed for interrupted-stream recovery
  • reject UTF-8 stream segments before they exceed Cloudflare SQLite row limits
  • preserve tool-call recovery safety without storing streamed arguments

Validation

  • pnpm run build in packages/runtime
  • pnpm exec biome lint packages/runtime/src/errors.ts packages/runtime/src/index.ts packages/runtime/src/runtime/stream-chunks.ts packages/runtime/test/stream-chunks.test.ts
  • runtime tests passed during review (762 tests)

@FredKSchott FredKSchott merged commit 8859b34 into main Jun 25, 2026
2 checks passed
@FredKSchott FredKSchott deleted the fix/compact-stream-chunk-persistence branch June 25, 2026 10:07
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