Repository navigation
feat: deliver Codex images and preserve upload originals - #3669
alex-furman wants to merge 12 commits into
Conversation
|
✅ Nightly unit-suite clean when this PR is merged into |
Integrate official dev, retain both runtime test blocks, and align shared upload documentation with original-file storage and terminal cleanup.
|
merge-train: held back from today's train. Thanks for this; the code is careful, the security checks found nothing, and the tests execute the real paths. It needs a maintainer decision before it can land:
|
|
@vybe Narrowed this to native Codex image delivery in 0a8708696, with validation documentation clarified in d5fe73170. The shared original-file persistence, channel retention changes and added Read grant are removed, so this PR no longer adds images to the workspace repo or makes shared vision depend on saving originals. Temporary native image inputs belong to the subprocess reader until it finishes; HTTP cancellation does not introduce process-group termination. Rejected reader submission/startup stops the child before releasing its inputs. 204 runtime tests pass. An independent probe also used the pinned, unmodified Codex 0.147.0 with synthetic PNG/JPEG/GIF/WebP inputs and a local fake provider: initial and resumed turns each attach four fresh images. This does not establish live model interpretation. Proposal acceptance in #3668 and a scoped tracking issue remain outstanding; I have not treated the revisions as clearing that gate. Please review whether this narrower native-image scope is acceptable, and re-review the implementation. |
|
@vybe Following up on the narrowed native Codex image proposal. We integrated current Is this narrow capability something you would accept upstream? If so, could you point us to the appropriate reviewer and scoped issue for discussion #3668? Shared original-file storage and retention remain outside this PR, and the CLI fixture does not establish live model interpretation. We would appreciate a direction before further integration work. |
|
merge-train (2026-11-04): this is the direction you asked for on 10-27. The scope is accepted through discussion #3668 and tracked in #3870, so the proposal itself is fine. This train did not validate the code. The next step is on your side: this head conflicts with |
Fixes #3870. Implements the scope accepted in discussion #3668.
Codex-backed agents currently discard uploaded images, and accepted raster uploads have no workspace original. This change delivers JPEG/PNG/GIF/WebP through native CLI image arguments on initial and resumed turns and saves accepted originals through the existing upload interface.
Native image inputs keep the existing limits: at most ten images, 5 MiB each and 10 MiB total. Random private directories and mode-0600 files belong to the actual subprocess. Cancelling its HTTP waiter does not remove inputs still in use. Upstream reader/handoff ownership and stdin/endpoint protections are retained. An optional registry exit callback releases resources only after child exit is observed, including failed handoff and unconfirmed termination; no separate reaper is added.
Workspace originals use opaque per-dispatch directories, existing upload limits and audit attribution. Concurrent uploads in the same session cannot remove each other's files. If original storage fails, usable native vision still reaches the runtime and the prompt/audit explicitly report that the original is unavailable. New uploads are excluded by default from Git, including existing repositories before their next backend Push; deliberate user gitignore overrides retain their established precedence.
Retention follows existing channel behavior: web/session/public originals remain workspace-owned until explicit removal; successful messaging executions clean up their dispatch. Failed, cancelled or uncertain messaging outcomes retain originals with an actionable log, and require manual removal after confirming the execution stopped. This intentionally trades storage for preservation when completion is uncertain. Original-file availability grants no new public Read permission; existing authorization still controls tool access. No new endpoint, file type or credential path is introduced.
Current integration:
a406143a6043418be218a9508431f421df2e83eb, based on official devc8f67cb857086a31f69d1dcc65d360bd94399ba1.Validation:
Limits: the CLI fixture proves decoding/request formation, not live model interpretation; its transport falls back from unsupported WebSocket to HTTPS. Uncertain originals have manual retention, not automatic reconciliation. These checks do not establish production deployment or full live-user workflow acceptance.
Journey Impact: none: native image attachments are not represented in the current journey catalog.
Mutation: current-stock image delivery still fails its characterization checks. Added lifecycle/storage/attribution regressions failed before their corresponding corrections and pass afterward; the separate runtime and Docker proofs exercise the real interfaces with synthetic inputs.