Skip to content

Allow configuring the WebUI models folder at server startup - #1227

Merged
0xShug0 merged 1 commit into
mainfrom
fix/ui-models-root-default
Nov 6, 2026
Merged

0xShug0 merged 1 commit into
mainfrom
fix/ui-models-root-default

Conversation

@0xShug0

@0xShug0 0xShug0 commented Nov 6, 2026

Copy link
Copy Markdown
Owner

Allow the server to choose the WebUI's startup models folder with --models-root or JSON models_root. The CLI overrides the config; relative paths resolve against the working directory for CLI arguments and the config directory for JSON. Omitting both preserves models/ beside the executable.

The WebUI now reads the server's current folder instead of automatically replacing it with a browser-saved path. Explicit folder selection, history, and Use default remain available. Both server runtimes use the configured default. Includes documentation and the rebuilt WebUI bundle.

Validation:

  • C++17 Debug server build and server configuration tests passed.
  • WebUI check passed with zero errors/warnings; production bundle rebuilt.
  • 22 real-server/browser checks passed across both runtimes: CLI/config precedence, relative paths, stale browser settings, Browse/Apply, history, reset, reload, a second browser context, restart, and the unchanged default.
  • Empty/missing CLI paths, malformed config values, and a file supplied as the models directory are rejected.

Closes #1225.

@0xShug0
0xShug0 merged commit 04a5877 into main Nov 6, 2026
12 checks passed
@0xShug0
0xShug0 deleted the fix/ui-models-root-default branch November 6, 2026 22:07
delebash added a commit to delebash/audio.cpp that referenced this pull request Nov 8, 2026
Two conflicts, both independent fields side by side: our model_management
and upstream's models_root (0xShug0#1227) in the server config.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01PFJ4wux8AZfMeuyaL63Fca
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.

[WebUI] Add configurable default models root

1 participant