ollama - 💡(How to fix) Fix ollama launch codex-app writes legacy profile config rejected by Codex App [1 pull requests]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Error Message

Codex App then reports a startup/chat error like: Error starting chat 4. Observe the legacy profile config error.

Root Cause

ollama launch codex-app can make Codex App fail to start a chat with Codex 0.134+ / 0.135 because Ollama writes Codex's legacy profile config into ~/.codex/config.toml.

Fix Action

Fixed

Code Example

profile = "ollama-launch-codex-app"

[profiles.ollama-launch-codex-app]
model = "..."
openai_base_url = "http://127.0.0.1:11434/v1/"
model_provider = "ollama-launch-codex-app"
model_catalog_json = "/Users/.../.codex/ollama-launch-models.json"

---

Error starting chat
failed to resolve feature override precedence: legacy `profile = "ollama-launch-codex-app"` config is no longer supported; use `--profile ollama-launch-codex-app` with `ollama-launch-codex-app.config.toml` instead

---

ollama launch codex-app --model gemma4:31b
RAW_BUFFERClick to expand / collapse

What is the issue?

ollama launch codex-app can make Codex App fail to start a chat with Codex 0.134+ / 0.135 because Ollama writes Codex's legacy profile config into ~/.codex/config.toml.

The generated config includes a root profile selector and profile table like:

profile = "ollama-launch-codex-app"

[profiles.ollama-launch-codex-app]
model = "..."
openai_base_url = "http://127.0.0.1:11434/v1/"
model_provider = "ollama-launch-codex-app"
model_catalog_json = "/Users/.../.codex/ollama-launch-models.json"

Codex App then reports a startup/chat error like:

Error starting chat
failed to resolve feature override precedence: legacy `profile = "ollama-launch-codex-app"` config is no longer supported; use `--profile ollama-launch-codex-app` with `ollama-launch-codex-app.config.toml` instead
<img width="1252" height="314" alt="Image" src="https://github.com/user-attachments/assets/c013368c-e9cc-48f8-88ea-22ee3a96fc82" />

This is related to, but distinct from, #16348. That issue's main report is for ollama launch codex / Codex CLI. This issue tracks the codex-app path specifically.

Steps to reproduce

  1. Use Ollama 0.24.0+ with a recent Codex App / Codex runtime that rejects legacy profile config.

  2. Run:

    ollama launch codex-app --model gemma4:31b
  3. Open Codex App and start a chat.

  4. Observe the legacy profile config error.

Expected behavior

ollama launch codex-app should configure Codex App without writing legacy profile selectors or [profiles.ollama-launch-codex-app] into ~/.codex/config.toml.

For Codex App, Ollama can keep the app selection in root model, model_provider, and model_catalog_json, and keep the provider in [model_providers.ollama-launch-codex-app].

Related PR

I opened #16364 for the Codex App side of this. #16351 appears to address the Codex CLI side.

OS

macOS

GPU

No response

CPU

No response

Ollama version

0.24.0

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

FAQ

Expected behavior

ollama launch codex-app should configure Codex App without writing legacy profile selectors or [profiles.ollama-launch-codex-app] into ~/.codex/config.toml.

For Codex App, Ollama can keep the app selection in root model, model_provider, and model_catalog_json, and keep the provider in [model_providers.ollama-launch-codex-app].

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

ollama - 💡(How to fix) Fix ollama launch codex-app writes legacy profile config rejected by Codex App [1 pull requests]