ollama/cmd/launch
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
..
account.go launch: add plan-aware model gating (#16027) 2026-05-06 14:34:26 -07:00
claude.go launch: auto-install Claude Code (#16802) 2026-06-19 10:11:50 -07:00
claude_desktop.go launch: enriched model inventory (#16230) 2026-05-21 11:57:20 -07:00
claude_desktop_test.go launch: enriched model inventory (#16230) 2026-05-21 11:57:20 -07:00
claude_test.go launch: auto-install Claude Code (#16802) 2026-06-19 10:11:50 -07:00
cline.go feat(launch): show and auto-install Cline CLI (#16402) 2026-06-01 19:04:08 -04:00
cline_test.go feat(launch): show and auto-install Cline CLI (#16402) 2026-06-01 19:04:08 -04:00
codex.go launch: clean legacy codex profile before launch (#16467) 2026-06-03 14:49:31 -04:00
codex_app.go launch/codex: detect model drift when Codex App UI switches away from Ollama (#16864) 2026-06-22 15:38:19 -07:00
codex_app_test.go launch/codex: detect model drift when Codex App UI switches away from Ollama (#16864) 2026-06-22 15:38:19 -07:00
codex_test.go launch: clean legacy codex profile before launch (#16467) 2026-06-03 14:49:31 -04:00
command_test.go launch: disable Claude Desktop launch (#16028) 2026-05-07 10:46:18 -07:00
copilot.go launch: enriched model inventory (#16230) 2026-05-21 11:57:20 -07:00
copilot_test.go cmd/launch: add Copilot CLI integration (#15583) 2026-04-15 17:22:53 -07:00
droid.go launch: enriched model inventory (#16230) 2026-05-21 11:57:20 -07:00
droid_test.go launch: enriched model inventory (#16230) 2026-05-21 11:57:20 -07:00
hermes.go launch: use native Windows Hermes config path (#16558) 2026-06-05 17:29:19 -07:00
hermes_test.go launch: use native Windows Hermes config path (#16558) 2026-06-05 17:29:19 -07:00
integrations_test.go launch: auto-install opencode when missing (#16806) 2026-06-19 10:12:11 -07:00
kimi.go launch: enriched model inventory (#16230) 2026-05-21 11:57:20 -07:00
kimi_test.go launch: enriched model inventory (#16230) 2026-05-21 11:57:20 -07:00
launch.go launch: Fix launch provider drift (#16683) 2026-06-11 17:21:46 -07:00
launch_test.go launch: Fix launch provider drift (#16683) 2026-06-11 17:21:46 -07:00
model_inventory.go launch: enriched model inventory (#16230) 2026-05-21 11:57:20 -07:00
model_inventory_test.go launch: enriched model inventory (#16230) 2026-05-21 11:57:20 -07:00
models.go runner: Remove CGO engines, use llama-server exclusively for GGML models (#16031) 2026-05-29 13:35:47 -07:00
models_test.go Reduce startup model hydration (#16215) 2026-05-19 15:53:08 -07:00
omp.go launch: oh-my-pi (#16410) 2026-06-04 17:49:49 -07:00
omp_test.go launch: oh-my-pi (#16410) 2026-06-04 17:49:49 -07:00
openclaw.go launch: enriched model inventory (#16230) 2026-05-21 11:57:20 -07:00
openclaw_test.go launch: enriched model inventory (#16230) 2026-05-21 11:57:20 -07:00
opencode.go launch: auto-install opencode when missing (#16806) 2026-06-19 10:12:11 -07:00
opencode_test.go launch: auto-install opencode when missing (#16806) 2026-06-19 10:12:11 -07:00
pi.go launch: oh-my-pi (#16410) 2026-06-04 17:49:49 -07:00
pi_test.go launch: migrate pi (#16213) 2026-06-03 14:35:32 -07:00
poolside.go launch: enriched model inventory (#16230) 2026-05-21 11:57:20 -07:00
poolside_test.go launch: enriched model inventory (#16230) 2026-05-21 11:57:20 -07:00
qwen.go cmd/launch: add Qwen code integration (#15900) 2026-06-01 19:51:32 -04:00
qwen_test.go cmd/launch: add Qwen code integration (#15900) 2026-06-01 19:51:32 -04:00
registry.go launch: auto-install opencode when missing (#16806) 2026-06-19 10:12:11 -07:00
registry_test_helpers_test.go cmd: refactor tui and launch (#14609) 2026-03-12 18:39:06 -07:00
runner_exec_only_test.go launch: oh-my-pi (#16410) 2026-06-04 17:49:49 -07:00
selector_hooks.go launch: add plan-aware model gating (#16027) 2026-05-06 14:34:26 -07:00
selector_test.go launch: add openclaw channels setup (#15407) 2026-04-08 13:25:27 -07:00
test_config_helpers_test.go launch: enriched model inventory (#16230) 2026-05-21 11:57:20 -07:00
vscode.go launch: enriched model inventory (#16230) 2026-05-21 11:57:20 -07:00
vscode_test.go launch: enriched model inventory (#16230) 2026-05-21 11:57:20 -07:00