Skip to content

wan worker: take default_width and default_height as daemon options - #168

Merged
jayleaton merged 1 commit into
mainfrom
fix/wan-daemon-default-size
Nov 20, 2026
Merged

jayleaton merged 1 commit into
mainfrom
fix/wan-daemon-default-size

Conversation

@jayleaton

Copy link
Copy Markdown
Owner

What

tools/video/wan/worker.py refused default_width and default_height as unknown options. Since #162 the engine accepts both as a cmd video tool's declared default size (main's ComfyUI worker uses them), so a Wan config that set them passed startup and then failed when the worker loaded:

ValueError: unknown options: default_height, default_width

Both are now in DAEMON_OPTIONS; the worker's docstring and README list them with the other daemon limits.

Follow-up nit from Randy's round-5 review of #162.

Tests

  • test_worker.py: a new test builds the worker with every daemon video option, default_width and default_height included. It failed with the error above before the fix. 12 tests pass.
  • test_fetch.py: 4 tests pass.
  • zig build and zig build test-unit pass (26/26 steps), and git diff --check is clean.
  • Locally, zig build test's integration tests can't run: their daemons write under /tmp, and this machine's per-user /tmp quota is full of other work (DiskQuota). This change is Python only, so CI's zig build test is the full run.

🤖 Generated with Claude Code

The engine accepts both as a cmd video tool's default size, so a Wan config that
used them passed startup and then failed at load with "unknown options".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@jayleaton
jayleaton merged commit 257daa0 into main Nov 20, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant