Repository navigation
fix(agent): settle runs after invalid image preparation - #6871
Merged
M4n5ter merged 2 commits intoNov 13, 2026
Merged
Conversation
Generated-by: OpenAI Codex
Generated-by: OpenAI Codex
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
A truncated image returned by a tool can leave a run stuck during model request preparation. Classify invalid image headers and decode failures as terminal
invalid_imageerrors. The failed run settles and releases the investigation slot so queued work can proceed.Verification
AI use
Tool(s) and scope: OpenAI Codex assisted with implementation, regression coverage, verification, and drafting.
Checklist
Does this PR entail a change in behavior?
简体中文
工具返回截断的图片时,运行可能卡在模型请求准备阶段。现在,无效的图片头和解码失败会作为终态错误
invalid_image处理。失败的运行会结束并释放调查位,队列里的任务可以继续执行。macOS 联调验证了截断图片会结束运行、有效图片能送达模型服务,以及失败的调查释放位置后下一轮能正常完成。独立分支上的坏图与有效图片回归测试也已通过。
OpenAI Codex 协助了实现、回归测试、验证和正文起草。