Repository navigation
fix: deliver Codex-generated images on message-tool routes - #110893
Conversation
|
Live iMessage proof on the final patch content:
Local ClawSweeper final result: no findings, no risks, no merge-risk labels. Autoreview: clean. |
afa4e5e to
67def3c
Compare
|
Codex review: needs real behavior proof before merge. Reviewed July 18, 2026, 3:41 PM ET / 19:41 UTC. Summary PR surface: Source +64, Tests +243, Docs +9. Total +316 across 17 files. Reproducibility: yes. from source and the supplied production report: a Codex native image-generation turn with media and no assistant text reaches the message-tool-only suppression boundary. I could not independently run the current-main reproduction in this read-only review environment. Review metrics: 1 noteworthy metric.
Stored data model Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. 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
Maintainer decision needed
Security Review detailsBest possible solution: Keep the explicit subset-and-provenance design, confirm the trusted-harness contract on the final head, and attach a redacted final-head iMessage or equivalent live delivery transcript showing that marked artifacts deliver while Do we have a high-confidence way to reproduce the issue? Yes from source and the supplied production report: a Codex native image-generation turn with media and no assistant text reaches the message-tool-only suppression boundary. I could not independently run the current-main reproduction in this read-only review environment. Is this the best way to solve the issue? Yes, conditionally: provenance as a validated subset of delivered tool media is narrower than broadly exempting tool media or changing the user configuration. The remaining question is approval and live proof for the final shared-harness contract. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against bf2da1ce1af7. Label changesLabel changes:
Label justifications:
Evidence reviewedPR surface: Source +64, Tests +243, Docs +9. Total +316 across 17 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
Review history (1 earlier review cycle)
|
Document trusted harness artifact provenance and cover the runner-to-dispatch bridge.\n\nRelease note: Codex-generated images now reach message-tool-only routes while normal source suppression remains intact.\n\nCo-authored-by: Omar Shahine <[email protected]>
|
Merged via squash.
|
…110893) * fix: deliver Codex-generated images on message-tool routes * test(codex): cover native image delivery path Document trusted harness artifact provenance and cover the runner-to-dispatch bridge.\n\nRelease note: Codex-generated images now reach message-tool-only routes while normal source suppression remains intact.\n\nCo-authored-by: Omar Shahine <[email protected]> --------- Co-authored-by: Omar Shahine <[email protected]> Co-authored-by: Peter Steinberger <[email protected]>
…110893) * fix: deliver Codex-generated images on message-tool routes * test(codex): cover native image delivery path Document trusted harness artifact provenance and cover the runner-to-dispatch bridge.\n\nRelease note: Codex-generated images now reach message-tool-only routes while normal source suppression remains intact.\n\nCo-authored-by: Omar Shahine <[email protected]> --------- Co-authored-by: Omar Shahine <[email protected]> Co-authored-by: Peter Steinberger <[email protected]>
Closes #110394
What Problem This Solves
Fixes an issue where users asking Codex-backed agents to generate an image would receive no response on
message_tool_onlychannel routes when Codex used its native image-generation tool.Why This Change Was Made
Codex native image generation intentionally completes without assistant text and returns the saved artifact through the host. The Codex projector now carries those exact URLs as host-owned provenance. Core splits that subset from generic tool media before applying the existing source-reply suppression exception, while continuing to suppress ordinary assistant source replies, generic media, and message-tool transcript mirrors.
This adds one optional field to the existing
agent-harness-runtimeattempt-result type so provider harnesses can identify host-owned media. It does not change channel/plugin registration APIs, config schema, or gateway protocol.Maintainer decision:
message_tool_onlygoverns model-authored source replies and generic tool media. Runtime-owned terminal output with explicit provenance remains deliverable through host dispatch, consistent with existing command and durable-completion exceptions. OutboundsendPolicydenial still wins.User Impact
Generated images from Codex-native
imagegenare delivered to the originating channel even when normal source replies require themessagetool. Existing message-tool-only text delivery behavior is unchanged.Evidence
2026.7.2-beta.2 (54d98a4): Codex completed native image generation with a valid 2.4 MB PNG and zero assistant text; the gateway loggedvisible channel turn dispatched with no queued reply payloads, and iMessage received nothing.tool-media-payloads.test.ts, schema-help quality, Codexevent-projector.test.ts, and Codexrun-attempt.test.ts. After rebasing, the core delivery, schema-help, and projector suites passed 201 tests; two additional queued-delivery tests prove that marked host media still respectssendPolicy: denyand ambientroom_eventsilence. The local current-mainrun-attempt.test.tsharness times out beforeturn/start, including an untouched adjacent test, so CI remains authoritative for that file on the rebased head.5d03f44; the published head67def3cis a clean rebase with identical stable patch IDf81dcd8293243d4b8c9eeef7fe5c42ba55bcb22c:Generate a lobster image using imagegen.No delivery behavior was forced or prohibited.openai/gpt-5.5against a copied real iMessage DM session and completed normally in 158.5 seconds.imagegen->image_generation_end(completed) -> terminalagent_message->task_complete, with nomessagefunction call. The live terminal message was empty; the upstream Codex contract's nonemptyDonefollow-up is covered by the mixed assistant-text regression test.7092is outbound, has zero text, and contains oneimage/pngattachment (2,693,995bytes).18789for the entire proof; no development gateway or second inbound iMessage monitor was started.