fix(model_settings): preserve unchanged video defaults #10
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/preserve-video-default-metadata"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fix
Only rewrite
meta.defaultFeatureIdsif the requested video default differs from what Open WebUI currently has. A description or compaction-threshold update keeps absent lists absent, empty lists empty, and existing list order unchanged. Explicit video toggles still add/remove only the video entry. Keep the post-write guard unchanged.Evidence
The Auto update in john/ai #99 added
defaultFeatureIds: []to a model that previously had no such field; the v0.1.0-dev.8 provider then failed its unowned-field readback guard. Reproduced with the exact pinned provider and a mock Open WebUI. Regression tests exercise absent, empty, non-video and already-on lists, including the outgoing update body. Existing real-toggle tests andgo test ./...pass locally using OpenTofu 1.13.9.This is the provider behavior fix. john/ai #101 is diagnostic-only. No version bump or consumer pin change in this PR.