Commit graph

6 commits

Author SHA1 Message Date
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
Parth Sareen
f57d111754
launch: isolate Codex launch configuration (#16437) 2026-06-02 12:10:46 -07:00
ZiTian Zhao
5e9636fa05
launch: avoid legacy Codex App profiles (#16364)
* launch: avoid legacy Codex App profiles
---------

Co-authored-by: ParthSareen <parth.sareen@ollama.com>
2026-06-01 11:49:56 -07:00
Parth Sareen
91c8e5e1a8
launch: enriched model inventory (#16230) 2026-05-21 11:57:20 -07:00
Parth Sareen
c28ddc0a7b
launch: codex app restarts (#16155) 2026-05-14 12:08:13 -07:00
Parth Sareen
ac7295ccab
launch: codex app integration (#16120) 2026-05-13 17:11:52 -07:00