ollama/cmd
Bruce MacDonald 2a8b31531e
launch/codex: detect model drift when Codex App UI switches away from Ollama (#16864)
ollama launch codex-app sets root-level model_provider = "ollama-launch-codex-app"
in ~/.codex/config.toml to route requests through the local Ollama server.
In Codex, model_provider is a global config key, there is no per-model provider
in the catalog schema (ModelInfo has no model_provider field), so it applies to
every model, not just Ollama ones.

When a user switches to a built-in OpenAI model (e.g. gpt-5.5) in the Codex App
UI, the UI writes model = "gpt-5.5" to config.toml but does NOT update
model_provider. The root model_provider stays "ollama-launch-codex-app", so the
OpenAI model request goes to http://localhost:11434/v1/responses instead of
OpenAI API, resulting in a 404 ("model gpt-5.5 not found"). The user is
stuck: OpenAI models silently route to localhost until they know to run
"ollama launch codex-app --restore".

Fix: CurrentModel() now verifies the configured model appears as a slug in the
Ollama-managed catalog before reporting the integration as active. When the
model has drifted (user selected a non-Ollama model in the UI), CurrentModel()
returns empty, so the launcher accurately shows the integration as inactive and
the user is directed to restore or re-launch.
2026-06-22 15:38:19 -07:00
..
bench Add support for gemma4 (#15214) 2026-04-02 11:33:33 -07:00
config cmd: refactor tui and launch (#14609) 2026-03-12 18:39:06 -07:00
internal/fileutil cmd/launch: improve integration backup UX (#15907) 2026-05-06 11:32:54 -04:00
launch launch/codex: detect model drift when Codex App UI switches away from Ollama (#16864) 2026-06-22 15:38:19 -07:00
runner Runner for Ollama engine 2025-02-13 17:09:26 -08:00
tui launch: update codex app UI copy (#16157) 2026-05-14 12:08:08 -07:00
background_unix.go cmd: ollama menu and launch improvements (#14038) 2026-02-09 11:30:16 -08:00
background_windows.go cmd: ollama menu and launch improvements (#14038) 2026-02-09 11:30:16 -08:00
cmd.go runner: Remove CGO engines, use llama-server exclusively for GGML models (#16031) 2026-05-29 13:35:47 -07:00
cmd_launcher_test.go launch: codex app integration (#16120) 2026-05-13 17:11:52 -07:00
cmd_test.go runner: Remove CGO engines, use llama-server exclusively for GGML models (#16031) 2026-05-29 13:35:47 -07:00
editor_unix.go feature: add ctrl-g to allow users to use an editor to edit their prompt (#14197) 2026-02-11 13:04:41 -08:00
editor_windows.go feature: add ctrl-g to allow users to use an editor to edit their prompt (#14197) 2026-02-11 13:04:41 -08:00
interactive.go modelfiles: fix /save command and add shortname for safetensors based models (#15413) 2026-04-08 21:05:39 -07:00
interactive_test.go Add support for gemma4 (#15214) 2026-04-02 11:33:33 -07:00
start.go nolintlint 2024-06-04 11:13:30 -07:00
start_darwin.go cmd: ollama launch improvements (#14099) 2026-02-05 15:08:17 -08:00
start_default.go lint 2024-08-01 17:06:06 -07:00
start_windows.go spawn desktop quickly (#11011) 2025-06-08 09:34:52 -07:00
warn_thinking_test.go add thinking support to the api and cli (#10584) 2025-05-28 19:38:52 -07:00