[Bug] Web UI: Base URL save button disabled & config not loaded on restart (Win11)
On Windows 11, configuring custom base_url for local providers (Ollama, vLLM, LM Studio) is broken in two ways:
- Web UI: The "Save" button for
Base URLremains disabled (grayed out), preventing users from saving changes via the interface. (Note:API Keysaves successfully to the config file but fails to display in the UI after refresh). - Config File: Manually editing
config.tomlto set a custombase_urlhas no effect. After restarting the application, it ignores the file and reverts to the default localhost URL.
Configuration Attempted
Manually edited config.toml:
[default_model]
provider = "ollama"
model = "llama3.2"
api_key_env = "OLLAMA_API_KEY"
base_url = "http://10.0.0.22:9001"
Result: File contains the value, but application ignores it on startup.
Steps to Reproduce
-
Web UI Issue:
- Navigate to Settings -> Provider (e.g., Ollama).
- Enter a custom
Base URL. - Observation: The "Save" button remains gray/disabled.
- Enter an
API Keyand Save. - Refresh page:
API Keyfield is empty (though value exists inconfig.toml).
-
Config File Issue:
- Stop the application.
- Verify
config.tomlcontainsbase_url = "http://10.0.0.22:9001". - Restart the application.
- Observation: App attempts to connect to default
http://localhost:11434(or similar), ignoring the custom IP. Connection fails.
Expected Behavior
- "Save" button should enable when a valid
Base URLis entered. API Keyshould be visible in the UI if present in the config.- Application must read and apply
base_urlfromconfig.tomlon startup.
Actual Behavior
- Web UI prevents saving
Base URL. - Web UI fails to display saved
API Key. - Backend ignores
base_urlinconfig.tomlentirely, forcing defaults.
Environment
- OpenFang Version: v0.2.3
- OS: Windows 11
- Browser: Microsoft Edge
- Providers: Ollama, vLLM, LM Studio
Additional Context This makes it impossible to connect to any LLM not running on the exact default localhost port. The issue seems to be a combination of:
- Frontend validation logic incorrectly disabling the save button.
- Backend configuration loader failing to parse or apply the
base_urlfield from TOML.
On Windows 11, configuring custom
base_urlfor local providers (Ollama, vLLM, LM Studio) is broken in two ways:
- Web UI: The "Save" button for
Base URLremains disabled (grayed out), preventing users from saving changes via the interface. (Note:API Keysaves successfully to the config file but fails to display in the UI after refresh).- Config File: Manually editing
config.tomlto set a custombase_urlhas no effect. After restarting the application, it ignores the file and reverts to the default localhost URL.Configuration Attempted Manually edited
config.toml:[default_model] provider = "ollama" model = "llama3.2" api_key_env = "OLLAMA_API_KEY" base_url = "http://10.0.0.22:9001"Result: File contains the value, but application ignores it on startup.
Steps to Reproduce
Web UI Issue:
- Navigate to Settings -> Provider (e.g., Ollama).
- Enter a custom
Base URL.- Observation: The "Save" button remains gray/disabled.
- Enter an
API Keyand Save.- Refresh page:
API Keyfield is empty (though value exists inconfig.toml).Config File Issue:
- Stop the application.
- Verify
config.tomlcontainsbase_url = "http://10.0.0.22:9001".- Restart the application.
- Observation: App attempts to connect to default
http://localhost:11434(or similar), ignoring the custom IP. Connection fails.Expected Behavior
- "Save" button should enable when a valid
Base URLis entered.API Keyshould be visible in the UI if present in the config.- Application must read and apply
base_urlfromconfig.tomlon startup.Actual Behavior
- Web UI prevents saving
Base URL.- Web UI fails to display saved
API Key.- Backend ignores
base_urlinconfig.tomlentirely, forcing defaults.Environment
- OpenFang Version: v0.2.3
- OS: Windows 11
- Browser: Microsoft Edge
- Providers: Ollama, vLLM, LM Studio
Additional Context This makes it impossible to connect to any LLM not running on the exact default localhost port. The issue seems to be a combination of:
- Frontend validation logic incorrectly disabling the save button.
- Backend configuration loader failing to parse or apply the
base_urlfield from TOML.
I’m seeing similar results on macOS so don’t think it’s platform specific.
Fixed in v0.2.4. Provider base_url input now initializes correctly for local providers even when the URL is empty. Also fixed providerUrlSaving reactivity.