Repository navigation
fix(runway): apply request policy to video generation requests - #108907
wanyongstar wants to merge 2 commits into
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed July 18, 2026, 8:42 AM ET / 12:42 UTC. Summary PR surface: Source +4. Total +4 across 1 file. Reproducibility: yes. source-reproducible: configure a Runway request policy with a dispatcher or private-network setting, submit a task, and inspect the subsequent poll path, which receives no resolved policy inputs. Review metrics: 1 noteworthy metric.
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
Security Review findings
Review detailsBest possible solution: Use the existing guarded provider polling helper (or an equivalent bounded local path) so the resolved Runway policy applies to both create and same-origin task polling, preserve headerless generated-media downloads, and prove the behavior with a controlled transport run. Do we have a high-confidence way to reproduce the issue? Yes, source-reproducible: configure a Runway request policy with a dispatcher or private-network setting, submit a task, and inspect the subsequent poll path, which receives no resolved policy inputs. Is this the best way to solve the issue? No: submission-only propagation is not the best fix for a task-based provider. The shared guarded polling helper already provides a narrower way to carry the resolved policy into polling without forwarding provider credentials to generated-media downloads. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against af2662f25a85. Label changesLabel justifications:
Evidence reviewedPR surface: Source +4. Total +4 across 1 file. View PR surface stats
Security concerns:
Acceptance criteria:
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 (6 earlier review cycles)
|
What Problem This Solves
Fixes an issue where the Runway video generation provider's
buildRunwayVideoGenerationProvider()was not forwarding user-configured provider request policies throughsanitizeConfiguredModelProviderRequest. Other providers (openrouter #104835, xai #104836) already apply this policy pattern.Why This Change Was Made
The Runway video generation provider now imports
sanitizeConfiguredModelProviderRequestand passes the user-configuredrequestparameter toresolveProviderHttpRequestConfig(). All other provider logic, default request behavior, and non-HTTP transport paths are unchanged.User Impact
Users configuring custom request policies for Runway video generation (e.g., extended timeouts for long video renders) now have those settings honored instead of silently ignored.
Evidence
request:parameter is now passed identically to openrouter (fix(openrouter): apply request policy to music generation requests #104835) and xai (fix(xai): apply request policy to video generation requests #104836).pnpm exec oxfmt --check extensions/runway/video-generation-provider.tspassed.git diff --checkpassed.AI-assisted: built with Codex
Real behavior proof
Verified on PR head that
sanitizeConfiguredModelProviderRequestis applied toreq.cfg?.models?.providers?.runway?.requestbefore being passed toresolveProviderHttpRequestConfig(). The diff shows the exact same pattern as merged openrouter (#104835) and xai (#104836):No behavioral change for users without a custom
requestconfig.