fix(codex): transfer typed generated images#102054
Conversation
|
Codex review: needs maintainer review before merge. Reviewed July 8, 2026, 11:26 PM ET / 03:26 UTC. Summary PR surface: Source +46, Tests +86. Total +132 across 9 files. Reproducibility: yes. source-reproducible: current main trusts typed Review metrics: 1 noteworthy metric.
Stored data model Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Mantis proof suggestion Risk before merge
Maintainer options:
Next step before merge
Maintainer decision needed
Security Review detailsBest possible solution: Land the projector-bound typed-result transfer after maintainer review and exact-head checks; optional Telegram Desktop proof can further reduce channel-visible attachment uncertainty. Do we have a high-confidence way to reproduce the issue? Yes, source-reproducible: current main trusts typed Is this the best way to solve the issue? Yes. Persisting typed result bytes at the Codex app-server projector boundary is narrower and more durable than relying on app-server-local paths or optional raw-response events. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 1252a3da59a8. Label changesLabel justifications:
Evidence reviewedPR surface: Source +46, Tests +86. Total +132 across 9 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 (15 earlier review cycles; latest 8 shown)
|
660e72e to
b86040c
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
Summary
Persist image bytes from the typed Codex
imageGenerationitem into managed media before delivery. This prevents remote app-serversavedPathvalues from being treated as local files and removes the dependency on the optional raw-response event.Refresh the app directory once before paginating the refreshed snapshot.
Make the Codex-native image contract explicit so an image-generation turn completes after one successful generation and automatic attachment can run.
Validation
git diff --checkpassed on the final rebased runtime head.50dabb082ed581081125243464d45476e78c6a63was rebuilt asghcr.io/sjf/openclaw:cla-20-50dabb082e-amd64with index digestsha256:42ad614096a7dbf2beb0c47a421facfa63958a902ae421db78deccce840b4776.sjfclawat 5:28 PM PDT on July 8, 2026: 1,464,916 bytes, 1254x1254, SHA-256e8c8fc50695c0c88bc5308040c17abf98e44660ebd3f99f2e13df2f7b73221f8, with no media warning.image_generatepath was forced withopenai/gpt-image-2and delivered exactly one new PNG throughsjfclawat 6:06 PM PDT on July 8, 2026: 1,261,777 bytes, 1024x1024, SHA-2567a4405d958e9846747b9195bba82d3ac5a0d39f2b34cd1f87cbc89e9ad8d0ba4, with no media warning or duplicate.