hermesagent.download
GitHub ↗

Codex 圖片生成的 SSE 串流解析沒有大小上限

📅 2026年6月29日 ✅ 最後驗證 2026年6月29日 ✍️ HermesAgent.download Contributors

此 issue 回報內建的 openai-codex 圖片生成 provider 在解析成功的 Codex Responses SSE 串流時,使用 iter_lines() 逐行累積 data: 內容,但沒有針對單一 SSE 行、單一累積事件或整體串流內容設定上限,可能導致惡意或異常的串流讓緩衝持續累積直到耗盡記憶體。

官方來源