Repository navigation
fix(video): harden DashScope task and media lifecycle - #117303
Conversation
|
Codex review: found issues before merge. Reviewed August 5, 2026, 12:16 PM ET / 16:16 UTC. ClawSweeper reviewWhat this changesThe PR gives Qwen and Alibaba’s shared DashScope video adapter model-specific request contracts, fallback-aware capability checks, and safer task and media cleanup. Merge readinessKeep open for maintainer review: current main still has the reported shared-adapter defects, but the branch needs one documentation correction and a decision on live proof for its newly changed provider wire shapes. Priority: P2 Review scores
Verification
How this fits togetherAgent video requests choose a model and fallback before the shared DashScope adapter submits, polls, and downloads provider results. Qwen and Alibaba both use this adapter, so its validated media output feeds both plugins’ video-generation results. flowchart LR
A[Agent video request] --> B[Model and fallback selection]
B --> C[Shared DashScope adapter]
C --> D[Provider task submission]
D --> E[Task polling]
E --> F[Validated video download]
F --> G[Agent video result]
Decision needed
Why: Repository policy requires live verification for external APIs, while the submitted live run covers only the unchanged text-to-video shape and the other changed paths incur provider cost. Before merge
Findings
Agent review detailsSecurityNone. PR surfaceSource +145, Tests +621, Docs +16. Total +782 across 18 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the shared adapter as the single owner, split the Wan 2.7 fixed-audio exception out of both provider tables, and obtain redacted live proof for each changed provider wire shape before merge unless a maintainer explicitly accepts contract-test-only coverage. Do we have a high-confidence way to reproduce the issue? Yes, from source: current main’s shared adapter and primary-only tool preflight establish the reported paths, although this read-only review did not run a live provider request. Is this the best way to solve the issue? Yes, with the remaining evidence work: the shared adapter is the right single owner for both plugins, but its Wan 2.7 documentation and live proof should match the new model-specific behavior. Full review comments:
Overall correctness: patch is correct AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 36dbbd72ed8c. 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
HistoryReview history (10 earlier review cycles; latest 8 shown)
|
6717d84 to
bc03770
Compare
|
Land-ready proof for exact head Root cause and owner: the shared DashScope Wan adapter owned Qwen/Alibaba submission, polling, and download, but it treated distinct model/mode protocols as one request shape and kept submission response guards alive across later phases. The same owner also treated documented Canonical repair: one model catalog now drives agent-visible modes and request-local capability overlays. The adapter emits the documented Wan 2.6 T2V/R2V, Wan 2.6 I2V, and Wan 2.7 R2V fields; normalizes unsupported resolution/duration defaults; rejects model/reference mismatches before I/O; releases submission responses before polling; terminates Production delta: +296/-63 across the shared adapter, live default, and SDK wiring (net +233). The growth encodes the public model/mode capability contract, typed catalog overlay, input validation, and distinct vendor wire protocols; tests are counted separately. No duplicate provider implementation or compatibility path was added. Sibling coverage: Qwen and Alibaba both use Proof:
Known proof gaps: Alibaba was not billed for a duplicate render because it delegates to the identical owner; I2V/R2V wire shapes use official-contract regressions rather than additional paid renders. @clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Addressed both exact-head ClawSweeper findings in
Updated proof:
@clawsweeper re-review |
|
🦞👀 Command router queued. I will update this comment with the next step. |
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Addressed all three exact-head ClawSweeper findings in
The review repair also made Updated proof:
@clawsweeper re-review |
|
🦞👀 Command router queued. I will update this comment with the next step. |
|
Final exact-head proof update for
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Final live-mode proof and documentation correction for
This resolves the remaining P3 and the live-provider owner decision without a proof waiver. @clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Merged via squash.
|
…cope * origin/main: (70 commits) fix(clickclack): preserve MIME extension for unnamed uploads (openclaw#119646) fix(memory): keep post-ready RPCs responsive (openclaw#119710) fix(browser): preserve locale, timezone, and device overrides (openclaw#119695) fix(agents): stop messaging dedupe from dropping final replies that quote a short tool send (openclaw#118178) test(agents): batch code mode budget proof (openclaw#119699) fix(memory): keep gateway RPCs responsive during startup (openclaw#119676) improve(ui): trail transient session status beside row actions (openclaw#119560) refactor(msteams): consolidate channel action target resolution (openclaw#119632) fix: tail context answers the current user message (openclaw#117364) fix(whatsapp): exercise descriptor-safe credential persistence (openclaw#119621) fix(diagnostics-otel): route OTLP endpoints by signal (openclaw#101655) refactor(skills): consolidate workshop transcript and record normalization (openclaw#119643) fix(video): harden DashScope task and media lifecycle (openclaw#117303) refactor(transcripts): consolidate persistence and export ownership (openclaw#119634) fix: preserve ClickClack discussion state contracts (openclaw#118851) fix(matrix): retire shared E2EE clients safely (openclaw#119570) refactor(cron): unify catch-up persistence and payload encoding (openclaw#119636) refactor(ui): centralize composer attachment and capability controls (openclaw#119650) refactor(daemon): consolidate managed service lifecycle ownership (openclaw#119647) fix(browser): honor explicit navigation timeouts across browser drivers (openclaw#119654) ...
* fix(video): validate DashScope task outputs and release request guards * fix(video): validate DashScope task outputs and release request guards * refactor(video): use shared empty-asset validation * fix(video): align DashScope Wan request contracts * refactor(video): use shared empty-asset validation * fix(video): enforce catalog modes before provider calls * fix(video): keep model checks fallback-aware * fix(video): centralize fallback-aware capability checks * docs(video): document Wan 2.7 fixed audio --------- Co-authored-by: Peter Steinberger <[email protected]>
What Problem This Solves
Qwen and Alibaba share one DashScope Wan video owner, but it flattened different model protocols into one request shape. Real
wan2.6-t2vsmoke requests were rejected because the live default selected unsupported 480P/1-second values, Wan 2.6 T2V/R2V/I2V geometry fields were conflated, Wan 2.7 reference inputs used the legacy shape, and audio used the wrong parameter name.Mode/reference validation was also split across a primary-only tool preflight and the fallback-aware runtime. That duplicate policy blocked valid image/reference fallbacks, applied the wrong base-model reference limits, and could downshift a requested Wan 2.6 portrait resolution before adapter mapping. The shared owner also kept a completed submission response guard through polling/download, continued polling documented
UNKNOWNtasks that cannot recover, and accepted successful non-video responses until downstream handling.Why This Change Was Made
The repair keeps one canonical capability and provider flow:
size, Wan 2.6 I2V toresolution, and Wan 2.7 R2V tomedia/resolution/ratio;audioparameter and reject model/reference mismatches before network submission;UNKNOWNas terminal, release the submission guard before polling, and cancel unread invalid media bodies before releasing their guarded request;Generic empty generated-asset validation remains in the shared video runtime on current
main; this PR does not duplicate it in the provider.User Impact
Default Qwen/Alibaba text-to-video requests reach the provider with supported geometry and duration. Image/reference requests can fall through an incompatible primary to a compatible fallback, explicit R2V models accept their documented reference count, and 1080P portrait requests remain 1080P. Missing/expired tasks fail promptly with provider context. Malformed successful downloads are not returned as videos, and consumed responses no longer retain timeout/proxy resources across later phases.
Release-note context: fixes Qwen and Alibaba Wan video generation request compatibility, fallback-aware model selection, reference limits, geometry, and task/media lifecycle reliability.
Evidence
Prepared head:
491e2cb368614e1c59b768fefdb6b35c14aca93dtbx_01kz96r3101x2yjxnjk14sw7pd, covering the actualvideo_generatetool, primary-to-fallback mode selection, five-image R2V, 1080P portrait mapping, every bundled Wan model, both provider aliases, and the existing xAI model-catalog consumer.check:changed, including root E2E test types, all typecheck/lint shards, SDK surface, docs, dead code, boundaries, scripts, and guards.wan2.6-t2vgenerated one validated MP4 in 31.769 seconds with isolated state and redacted credentials.wan2.6-i2v, 720P, 2 seconds, generated an 829,373-bytevideo/mp4in 30.717 seconds.wan2.6-r2v-flash, 720P/16:9, 2 seconds, generated a 692,720-bytevideo/mp4in 48.667 seconds.gpt-5.6-sol, xhigh reasoning, clean with no accepted/actionable findings.Alibaba was not billed for duplicate renders because it delegates to the exact same shared request/task owner proven through Qwen.