Repository navigation
fix(runway): apply configured request policy to video generation requests - #102134
chengzhichao-xydt wants to merge 2 commits into
Conversation
|
Codex review: needs maintainer review before merge. Reviewed July 8, 2026, 9:13 AM ET / 13:13 UTC. Summary PR surface: Source +112, Tests +101. Total +213 across 2 files. Reproducibility: yes. source-reproducible. Current main resolves Runway video HTTP config without passing models.providers.runway.request, while PR head threads the resolved policy through create, poll, and download stages. 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:
Risk before merge
Maintainer options:
Next step before merge
Maintainer decision needed
Security Review detailsBest possible solution: Runway video generation should consistently honor the existing sanitized provider request policy across submit, status polling, and generated-video download without adding another config surface. Do we have a high-confidence way to reproduce the issue? Yes, source-reproducible. Current main resolves Runway video HTTP config without passing models.providers.runway.request, while PR head threads the resolved policy through create, poll, and download stages. Is this the best way to solve the issue? Yes. The PR keeps the fix inside the Runway provider and reuses the existing provider HTTP request-policy helpers instead of adding a duplicate config or policy path. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against e25fa79c5d19. Label changesLabel changes:
Label justifications:
Evidence reviewedPR surface: Source +112, Tests +101. Total +213 across 2 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 (5 earlier review cycles)
|
…ests Apply models.providers.runway.request overrides (headers, allowPrivateNetwork, dispatcherPolicy) to Runway video generation requests via sanitizeConfiguredModelProviderRequest and resolveProviderHttpRequestConfig, matching other providers. - Fix test type errors caught by check-test-types. Co-Authored-By: Claude Opus 4.8 <[email protected]>
ef48f27 to
907749b
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
Closing this PR as requested. A fresh follow-up PR will be opened for the remaining request-policy/timeout direction. |
What Problem This Solves
Runway video generation previously ignored
models.providers.runway.requestoverrides (headers, allowPrivateNetwork, dispatcherPolicy). Users who configured a request policy for Runway saw it applied to chat/completion providers but not to video generation, so private-network access, custom headers, and dispatcher routing were dropped on the floor.Why This Change Was Made
Mirror the pattern already used by
openai,pixverse,googleimage generation, and Alix-007's recent DashScope/MiniMax/OpenRouter video request-policy PRs: resolve the configured transport policy once and carry it through every HTTP stage of the video operation.Changes
extensions/runway/video-generation-provider.tssanitizeConfiguredModelProviderRequest.req.cfg?.models?.providers?.runway.resolveProviderHttpRequestConfig.allowPrivateNetworkanddispatcherPolicyintopollRunwayTaskanddownloadRunwayVideos.allowPrivateNetworkordispatcherPolicy, falling back to the existing unguarded helpers when no guarded options are needed.extensions/runway/video-generation-provider.test.tsallowPrivateNetwork, anddispatcherPolicyreach create, poll, and download stages.check-test-types.Evidence
tsgo(source + test): no type errors.oxlint: clean.Real behavior proof against a local Runway-compatible endpoint, showing the configured
X-Runway-Policyheader is sent and private-network access is allowed:🤖 Generated with Claude Code