fix(codex): hydrate queued inbound images#83533
Conversation
|
Codex review: needs real behavior proof before merge. Workflow note: Future ClawSweeper reviews update this same comment in place. How this review workflow works
Summary Reproducibility: yes. at source level: current main copies only PR rating Rank-up moves:
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. Real behavior proof Mantis proof suggestion Risk before merge Maintainer options:
Next step before merge Security Review detailsBest possible solution: Land the bounded helper/test change after maintainer review and CI, keeping the existing attachment resolver as the single local-media security boundary. Do we have a high-confidence way to reproduce the issue? Yes, at source level: current main copies only Is this the best way to solve the issue? Yes, the PR uses the existing attachment resolver and moves hydration earlier, before queued-run context is lost. I did not find an existing supported configuration path that already solves queued MediaPath hydration. Label justifications:
What I checked:
Likely related people:
Codex review notes: model gpt-5.5, reasoning high; reviewed against 1e5450f23e1c. |
|
Landed via rebase onto
|
Summary
MediaPath/MediaPathsinto queued followupimageswhile the inbound context is still available.Fixes #83466
Verification
node scripts/run-vitest.mjs src/auto-reply/reply/get-reply-run.media-only.test.ts src/auto-reply/reply/agent-runner.media-paths.test.ts src/auto-reply/reply/followup-runner.test.ts extensions/codex/src/app-server/thread-lifecycle.test.ts extensions/codex/src/app-server/run-attempt.vision-tools.test.tsgit diff --check origin/main...HEAD.agents/skills/autoreview/scripts/autoreview --mode local(helper hit a Codex CLI argument incompatibility and fell back toclaude -p; clean: no accepted/actionable findings)Real behavior proof
Behavior addressed: current inbound image attachments from channel
MediaPath/MediaPathsreach Responses-backed Codex app-server/native PI runs as structured image input, including queued followups.Real environment tested: local focused OpenClaw test harness with real temp PNG attachment bytes and Codex app-server serialization tests.
Exact steps or command run after this patch:
node scripts/run-vitest.mjs src/auto-reply/reply/get-reply-run.media-only.test.ts src/auto-reply/reply/agent-runner.media-paths.test.ts src/auto-reply/reply/followup-runner.test.ts extensions/codex/src/app-server/thread-lifecycle.test.ts extensions/codex/src/app-server/run-attempt.vision-tools.test.tsEvidence after fix:
get-reply-run.media-only.test.tsassertsfollowupRun.imagescontains a native image andimageOrder: ["inline"]; Codex app-server tests assertparams.imagesserializes intoturn/start.input.Observed result after fix: 5 focused test files passed, 149 tests passed.
What was not tested: live Discord-to-OpenAI Responses turn; this PR proves the source-level handoff and app-server serialization path.