Skip to content

Enforce OpenContext HTTP byte limit while streaming - #136

Merged
ralyodio merged 1 commit into
profullstack:masterfrom
rissrice2105-agent:fix/opencontext-http-byte-limit
Aug 10, 2026
Merged

Enforce OpenContext HTTP byte limit while streaming#136
ralyodio merged 1 commit into
profullstack:masterfrom
rissrice2105-agent:fix/opencontext-http-byte-limit

Conversation

@rissrice2105-agent

Copy link
Copy Markdown
Contributor

Fixes #135

Summary

  • read HTTP response bodies as byte chunks instead of checking UTF-16 string length
  • cancel streaming responses immediately when they cross the 5 MiB limit
  • keep the configured timeout active until body consumption completes
  • add regressions for multibyte over-limit and valid within-limit responses

Validation

  • pnpm --dir packages/opencontext test (228 tests passed)
  • pnpm exec tsc -p packages/opencontext/tsconfig.json --noEmit

@ralyodio
ralyodio merged commit edf9a1b into profullstack:master Aug 10, 2026
6 checks passed
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.

HTTP adapter byte limit can be bypassed by multibyte responses

2 participants