Repository navigation
fix(openai): preserve video terminal outcomes and valid edit requests - #116917
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed July 31, 2026, 11:35 AM ET / 15:35 UTC. ClawSweeper reviewWhat this changesThis PR updates the bundled OpenAI video provider to handle failed or completed creation/edit submissions before polling and to send only documented fields for video edits. Merge readiness⛔ Blocked until real behavior proof from a real setup is added - 4 items remain Keep this PR open for protected maintainer review. The supplied context describes a focused OpenAI provider bug fix, but the read-only inspection environment failed before current source, history, dependency contracts, and the complete diff could be verified, so no merge or correctness verdict is safe. Priority: P2 Review scores
Verification
How this fits togetherThe bundled OpenAI extension submits video creation or editing requests, then either downloads completed media or polls pending provider jobs. Its response interpretation determines whether users receive the provider’s terminal error, a completed video, or a follow-up status request. flowchart LR
A[Video creation or edit request] --> B[OpenAI video provider]
B --> C[Initial OpenAI response]
C --> D{Terminal or pending status?}
D -->|Failed| E[Actionable provider error]
D -->|Completed| F[Download generated video]
D -->|Pending| G[Poll video job]
G --> F
Decision needed
Why: The protected maintainer label and unavailable repository inspection prevent an automated reviewer from safely judging the provider API contract or merge readiness. Before merge
Agent review detailsSecurityNone. PR surfaceSource +9, Tests +110. Total +119 across 2 files. View PR surface stats
Review metricsNone. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Have an OpenAI-extension owner review the exact head against the installed OpenAI video API contract, then retain the focused regression tests and add redacted after-fix provider evidence if a safe real-provider setup is available. Do we have a high-confidence way to reproduce the issue? Unclear. The PR body describes source locations and focused regression coverage, but this review could not inspect or execute current source because the read-only sandbox failed before repository access. Is this the best way to solve the issue? Unclear. The proposed owner-local repair appears narrowly scoped from the supplied context, but current implementation, callers, sibling behavior, and the installed OpenAI dependency contract were not available for comparison. AGENTS.md: unclear because the file could not be read completely. Codex review notes: model internal, reasoning high; reviewed against 0d209991b684. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
Co-authored-by: Peter Steinberger <[email protected]>
What Problem This Solves
Fixes issues where OpenAI video creation or editing could hide the provider's actual rejection, misleadingly complain about a missing video ID, or poll a job that was already complete. Also fixes video-edit requests that supplied an unsupported
modelparameter and could therefore be rejected by OpenAI's edit endpoint.These are two independent private OpenAI provider-owner defects affecting Sora video creation and video-to-video editing.
Why This Change Was Made
Use the authoritative status and nested error returned by OpenAI's initial video creation/edit response before deciding whether an asynchronous status poll is necessary. Share the same failure interpretation between initial submissions and subsequent polling, preserve existing request cleanup, and send only the official
prompt/videoparameters to/videos/edits.The repair stays inside the bundled OpenAI provider owner. Public plugin SDK, authentication, configuration, provider routing, request-network policy, generated-media limits, operation deadlines, and pending-job polling remain unchanged.
User Impact
modelmultipart field and instead follow the provider's documented edit schema.Evidence
e051a7bb4a6ba69b87391e990b00813114b1d482.codex/qa100-openai-video-terminal-submit.d8b1565ee23f9a591b85e3270870fb158b1211fd.extensions/openai/video-generation-provider.ts:439and an unsupported editmodelfield atextensions/openai/video-generation-provider.ts:389.[email protected]source directly confirms creation/edit return the authoritativeVideostatus and nested failure message atnode_modules/openai/src/resources/videos.ts:16,:87,:158, and:204;VideoEditParamspermits onlypromptandvideoatnode_modules/openai/src/resources/videos.ts:344.../codex/sdk/python/src/openai_codex/_run.py:60,../codex/codex-rs/app-server-protocol/src/protocol/v2/turn.rs:30, and../codex/codex-rs/app-server-protocol/src/protocol/thread_history.rs:1187.gpt-5.6-sol/ high review: clean, zero findings, 0.93 confidence.git diff --check, clean isolated worktree, frozen-parent ancestry, and unchanged clean canonicalmainall passed.Distinct Root Causes
promptandvideo.Explicit Exclusions
Existing held OpenAI/xAI realtime terminal-event work is unrelated and unchanged. No public configuration, authentication, plugin SDK, gateway protocol, dependency, persistence, or canonical-main behavior is modified.