Files
openworker/tests
Devika Verma 96ef2d07f6 fix(ollama): a profile saved as the old localhost default becomes 127.0.0.1, once (OPE-250)
The Settings form prefills the Ollama address with the default and saves
every field, so anyone who saved the Ollama card before OPE-229 (2026-11-02)
carries `http://localhost:11434` without having typed it. On Windows
`localhost` tries ::1 first, where Ollama does not listen, so every new
connection (each probe, each chat request) waited 0.3-2 s. With the rest of
this branch in place that profile alone kept a cold Models & Keys load at
1.0 s; with it migrated the same load takes 0.39 s.

At manager start, a saved `base_url` that is exactly the old default (a
trailing slash or `/v1` allowed, case-insensitive host) is rewritten to
`DEFAULT_OLLAMA_URL`, keeping the `/v1` and the rest of the profile. OPE-229's
rule that a saved address is used as typed stands for anything else:
`localhost:11435`, a path after the port, or another host are left alone.

Test: the three migrated spellings, three addresses that must stay, and the
no-profile case.

(cherry picked from commit 5a94252ee4f528a8a8e1f200730e558320b3790e)
2026-11-17 18:38:05 +05:30
..
2026-07-21 11:09:41 -07:00
2026-07-21 11:09:41 -07:00
2026-07-21 11:09:41 -07:00
2026-07-21 11:09:41 -07:00
2026-07-21 11:09:41 -07:00
2026-07-21 11:09:41 -07:00
2026-07-21 11:09:41 -07:00
2026-07-21 11:09:41 -07:00
2026-07-21 11:09:41 -07:00
2026-07-21 11:09:41 -07:00