mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-08 22:29:29 +08:00
* fix(openai): bound Codex OAuth token response body reads with readResponseWithLimit Replace unbounded response.arrayBuffer() in postTokenForm with readResponseWithLimit using a 1 MiB cap to prevent OOM from oversized token endpoint responses. Add real node:http loopback server tests. * fix(openai): wrap readResponseWithLimit result in Uint8Array for TS BodyInit compat - Fixes TS2345: Buffer<ArrayBufferLike> not assignable to BodyInit - Resolves check-prod-types, check-test-types, and check-additional-extension-package-boundary CI failures Ref. https://github.com/openclaw/openclaw/pull/99479 * test(openai): verify OAuth response release --------- Co-authored-by: Peter Steinberger <steipete@gmail.com>