openhuman icon indicating copy to clipboard operation
openhuman copied to clipboard

Let users configure an external Ollama server URL

Open Al629176 opened this issue 6 months ago • 3 comments

Summary

Add an editable Ollama server URL input to Local Model settings and avoid bootstrapping a fresh Ollama install when an external server is reachable.

Problem

On Windows 11, users who already run Ollama on an existing server/port need a UI way to point OpenHuman at that server. Core already supports local_ai.base_url, but the UI only displays the value read-only in the local model status area. The current Fix binary path flow also bootstraps a fresh install instead of letting users target or reuse an existing reachable Ollama server.

Verified details:

  • Core config supports local_ai.base_url in app/src/utils/tauriCommands/config.ts around line 143.
  • UI renders the value read-only in ModelStatusSection.tsx.
  • Fix binary path starts/bootstrap-installs rather than treating a reachable external Ollama server as valid.
  • Current workaround is manually editing config.toml.

Expected behavior: users can configure the Ollama server URL/port from the Local Model settings panel, test the connection, and use an existing reachable Ollama server without forced reinstall/bootstrap.

Impact: Windows users with existing Ollama setups have to edit config files manually or get pushed into an unnecessary install path, making local AI setup harder and more fragile.

Steps to reproduce:

  1. On Windows 11, run Ollama externally on a custom host/port or existing server.
  2. Open OpenHuman Local Model settings.
  3. Look for an editable Ollama server/base URL field.
  4. Observe the UI only shows the base URL/status read-only.
  5. Use Fix binary path.
  6. Observe OpenHuman attempts to bootstrap/install instead of accepting a reachable external server.

Version / platform: OpenHuman desktop app on Windows 11. Reported May 19, 2026.

Solution (optional)

Add an editable Ollama server URL field to the local-model settings panel, wired to local_ai.base_url. Include validation, save/apply behavior, and a connection test. Update the install/bootstrap flow so if the configured external Ollama server is reachable and healthy, OpenHuman skips binary-path repair/install bootstrap and uses that server.

Acceptance criteria

  • [ ] Editable URL field — Local Model settings include an editable Ollama server URL input backed by local_ai.base_url.
  • [ ] Validation included — The input validates URL format and gives clear guidance for host/port values.
  • [ ] Connection test works — Users can test the configured Ollama server and see reachable/unreachable status.
  • [ ] External server respected — If the configured Ollama server is reachable, OpenHuman uses it without requiring local binary bootstrap.
  • [ ] Install bootstrap skipped — Fix binary path or related repair flows do not force a fresh install when an external Ollama server is configured and healthy.
  • [ ] Config persists — Saved server URL persists through app restart and updates config.toml/core config correctly.
  • [ ] Read-only display updated — Existing read-only display in ModelStatusSection.tsx is replaced or paired with the editable setting in the right panel.
  • [ ] Regression safety — Unit/integration coverage verifies URL editing, config persistence, connection testing, and skip-bootstrap behavior.
  • [ ] Diff coverage ≥ 80% — the fix PR meets the changed-lines coverage gate (Vitest + cargo-llvm-cov, enforced by .github/workflows/coverage.yml).

Related

  • app/src/utils/tauriCommands/config.ts
  • ModelStatusSection.tsx
  • Windows 11 local AI / Ollama setup feedback.

Al629176 avatar May 18 '26 21:05 Al629176

Can i work on this issue?

ayushdiitr avatar May 19 '26 08:05 ayushdiitr

Hey ayushdiitr, thanks for picking this up! I've assigned you. The acceptance criteria in the issue description should be a good guide — let me know if you have any questions.

Al629176 avatar May 19 '26 08:05 Al629176

Hey @ayushdiitr — assigning this issue to you. Could you take a look?

Al629176 avatar May 19 '26 08:05 Al629176