fix(feishu,browser,msteams,azure-speech,bedrock-mantle,googlechat,huggingface,perplexity): bound JSON response reads#96620
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed June 27, 2026, 2:12 AM ET / 06:12 UTC. Summary PR surface: Source +6. Total +6 across 11 files. Reproducibility: yes. source-level. Current main still has direct success-response Review metrics: 1 noteworthy metric.
Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Proof guidance:
Risk before merge
Maintainer options:
Next step before merge
Security Review findings
Review detailsBest possible solution: Use the shared bounded JSON reader with correct imports or local facades, keep MS Teams Graph cap failures visible, update tests and proof around representative 16 MiB changed paths, then let maintainers accept the compatibility boundary. Do we have a high-confidence way to reproduce the issue? Yes, source-level. Current main still has direct success-response Is this the best way to solve the issue? No as submitted. Reusing Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against fbfadbd806e1. Label changesLabel justifications:
Evidence reviewedPR surface: Source +6. Total +6 across 11 files. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
1a9b028 to
5381c52
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
5381c52 to
d12ee6d
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
@clawsweeper re-review |
d12ee6d to
2f94910
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
@clawsweeper re-review |
…und JSON via shared provider helpers Use readProviderJsonResponse (shared 16 MiB default cap) for HTTP JSON reads. Co-Authored-By: Claude <[email protected]> Signed-off-by: lsr911 <[email protected]>
2f94910 to
eb26341
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
Closed: not viable to repair. Superseded by cleaner approaches or outside current focus area. |
What Problem This Solves
Replace unbounded
await response.json()withreadResponseWithLimit(1 MiB cap)across bound JSON response reads to prevent OOM:8 extensions, preventing OOM from oversized upstream HTTP responses.
Evidence
Real HTTP bounded-read proof
The proof harness starts a real
node:httpserver with no Content-Length, streams ~64 MiB of JSON, and verifiesreadResponseWithLimitcancels the stream at the 1 MiB cap.AI-assisted.