Codex App 26.715.9868.0 / CLI 0.145.0: spawn_agent rejects gpt-5.6-luna with multi_agent_v2 enabled

Open 💬 15 comments Opened Jul 22, 2026 by enzopresbiteris-rgb
💡 Likely answer: A maintainer (github-actions[bot], contributor) responded on this thread — see the highlighted reply below.

What version of the Codex App are you using (From “About Codex” dialog)?

26.715.9868.0 (Windows package version)

What subscription do you have?

ChatGPT account; exact subscription tier is not displayed in this session.

What platform is your computer?

Microsoft Windows 11 Pro, NT 10.0.26200.0, x64 (build 26200)

What issue are you seeing?

The Codex desktop app is configured to use the standalone Codex CLI 0.145.0 through CODEX_CLI_PATH. The desktop log confirms that it spawned the external executable, and codex --version returns codex-cli 0.145.0.

Both multi-agent flags are enabled:

multi_agent     stable  true
multi_agent_v2  stable  true

After fully restarting the desktop app, an explicit native subagent request with Luna and xhigh reasoning is rejected:

{
  "fork_turns": "none",
  "model": "gpt-5.6-luna",
  "reasoning_effort": "xhigh",
  "task_name": "teste_luna_xhigh_v2"
}

Actual error:

Unknown model `gpt-5.6-luna` for spawn_agent. Available models: gpt-5.6-sol, gpt-5.6-terra

No child agent is created. The same result was reproduced after enabling MultiAgent V2 and restarting the app.

What steps can reproduce the bug?

  1. Install the official Windows x64 Codex CLI release 0.145.0.
  2. Point the Codex desktop app to it using CODEX_CLI_PATH=%LOCALAPPDATA%\Programs\OpenAI\Codex\bin\codex.exe.
  3. Verify codex --version returns codex-cli 0.145.0.
  4. Run codex features enable multi_agent_v2 and verify both multi_agent and multi_agent_v2 are true.
  5. Fully quit and reopen the Codex desktop app.
  6. In a desktop task, call the native spawn_agent tool with fork_turns: "none", model: "gpt-5.6-luna", and reasoning_effort: "xhigh".
  7. Observe the unknown-model error stating that only gpt-5.6-sol and gpt-5.6-terra are available.

What is the expected behavior?

If Luna is intended to be available for configurable MultiAgent V2 children on this account/backend, spawn_agent should accept gpt-5.6-luna with xhigh reasoning and create the child agent.

If Luna is intentionally unavailable because of an account, rollout, backend, or entitlement restriction, the app should expose that limitation clearly and document how users can determine or obtain the required availability. Currently the local feature is stable and enabled, but the requested model remains impossible to select.

Additional information

The 0.145.0 release notes describe configurable sub-agent models/reasoning in MultiAgent V2 and mention GPT-5.6 Terra and Luna variants, which led to the expectation that Luna could be selected when using the new release.

This appears distinct from #20077 (full-history inheritance/model override behavior) and #26753 (encrypted tool schema request failure): this report reaches the spawn_agent tool and is rejected specifically because Luna is absent from the active model catalog.

The issue was reproduced multiple times. No files were modified by the failed subagent calls, and no child agent was created.

View original on GitHub ↗

15 Comments

github-actions[bot] contributor · 1 month ago

Potential duplicates detected. Please review them and close your issue if it is a duplicate.

  • #34399
  • #34301
  • #34024

Powered by Codex Action

ForrestGrump · 1 month ago

Additional cross-platform confirmation from native Codex CLI/TUI 0.145.0 on Ubuntu 24.04.4 under WSL2:

  • The top-level Select Model and Effort picker lists gpt-5.6-luna.
  • Native spawn_agent with fork_turns: "none", model: "gpt-5.6-luna", and reasoning_effort: "medium" is rejected with the same error:

``text
Unknown model
gpt-5.6-luna for spawn_agent. Available models: gpt-5.6-sol, gpt-5.6-terra
``

  • Positive controls from the same parent thread completed successfully:
  • gpt-5.6-sol with reasoning_effort: "max"
  • gpt-5.6-terra with reasoning_effort: "low"

This specifically reproduces through native spawn_agent, not top-level model selection or codex exec --model. I originally filed #34909 with the full payload and am closing it as a duplicate of this issue.

labolabo · 1 month ago

Additional Windows confirmation from a newer Codex Desktop package:

  • Codex Desktop: 26.721.4979.0
  • Codex CLI: 0.145.0
  • Windows 10 Pro x64, build 19045
  • Feature state:
  • multi_agent = true
  • multi_agent_v2 = false
  • The local model catalog includes gpt-5.6-luna.

A native subagent request using fork_turns: "none", model: "gpt-5.6-luna", and reasoning_effort: "low" is still rejected:

Unknown model 'gpt-5.6-luna' for spawn_agent. Available models: gpt-5.6-sol, gpt-5.6-terra

No Luna child is created. This suggests the spawned-agent model allowlist mismatch remains present in Desktop 26.721.4979.0 / CLI 0.145.0, and is not limited to sessions with the opt-in multi_agent_v2 flag enabled.

PatrickSys · 28 days ago

I traced this beyond the picker guard. #32751 is masking a real runtime mismatch, not resolving it.

Current V2 spawn first copies the parent config, then applies model = gpt-5.6-luna. But AgentControl::spawn_agent_internal resolves the child runtime from the parent/session path: explicit V2 config wins, otherwise it inherits the parent thread's V2 runtime. It does not resolve the selected child model's ModelInfo.multi_agent_version.

So removing the #32751 filter would start a Luna child on the V2 runtime despite Luna being catalogued V1. That explains why the filter was added, but it also means the user-facing behavior regressed from “selectable” to a misleading “unknown model.”

There are two valid fixes, and they are materially different:

  1. If Luna is meant to support the V2 collaboration backend, update the authoritative model metadata/backend rollout to V2. This is the minimal fix.
  2. If Luna is intentionally V1, implement a heterogeneous bridge: create the child with its own V1 runtime and adapt V2 spawn/message/completion semantics. V2 currently uses InterAgentCommunication/agent paths; V1 spawn uses UserInput and legacy completion flow. Merely selecting the V1 child runtime is insufficient.

Could a maintainer confirm which of those is the intended product state? Separately, the current error should say “known model, incompatible multi-agent backend” rather than “Unknown model.”

constantins2001 · 28 days ago

Strong +1. I hit this exact limitation today: spawn_agent accepts gpt-5.6-sol and gpt-5.6-terra, but rejects gpt-5.6-luna. Luna should be available for delegated subagents, including configurable reasoning effort, rather than forcing users onto a different model.

zhanglg12 · 28 days ago

Additional macOS confirmation from a newer Codex Desktop / CLI build:

  • Codex Desktop: 26.727.40816 (bundle build 6067, com.openai.codex)
  • Bundled Codex CLI: 0.146.0-alpha.9.2
  • macOS: 26.5.2 (25F84), Apple Silicon (arm64)
  • Feature state:
  • multi_agent = true
  • multi_agent_v2 = true

I reproduced this in a fresh read-only CLI session, rather than a resumed Desktop thread:

  • parent model: gpt-5.6-sol
  • parent reasoning effort: max
  • spawn_agent arguments:
  • agent_type = "default"
  • fork_turns = "none"
  • model = "gpt-5.6-luna"
  • reasoning_effort = "max"

Actual result:

Unknown model `gpt-5.6-luna` for spawn_agent. Available models: gpt-5.6-sol, gpt-5.6-terra

No child agent was created. This confirms that the spawned-agent Luna rejection persists in CLI 0.146.0-alpha.9.2 and is not limited to the 0.145.0 builds previously reported here.

dantheman9292 · 27 days ago

Yup, this is happening to me too! Can only spawn with the CLI

ashmortar · 24 days ago

Its kinda crazy this is still an open issue...

futile · 24 days ago
Its kinda crazy this is still an open issue...

Yup, this staying around so long, plus other issues over the past few weeks with codex-cli made me switch to pi instead. Not a 1-to-1 transition by far, but it doesn't have all these issues that codex introduced, _and_ it's easy to fix issues yourself/using an LLM since pi is very extensible & open source. It also supports codex subscriptions out-of-the-box, (thank you OpenAI for explicitly allowing this!), so it's easy to get started with pi and a codex subscription :)

abrisene · 23 days ago

Reproduced on macOS as well, with the current npm release.

Environment:

  • macOS 26.5 (25F71), arm64
  • codex-cli 0.146.0
  • ChatGPT-authenticated Codex App / native subagent surface
  • multi_agent = true
  • multi_agent_v2 = true
  • [agents] default_subagent_model = "gpt-5.6-luna"
  • Dedicated ~/.codex/agents/luna.toml declaring model = "gpt-5.6-luna" and model_reasoning_effort = "high"

After fully restarting Codex, the custom luna agent type was successfully discovered and appeared in the native agent catalog. Spawning it with agent_type = "luna" and fork_turns = "none" (with no explicit model override, so the profile owns model selection) still failed immediately with:

Unknown model `gpt-5.6-luna` for spawn_agent. Available models: gpt-5.6-sol, gpt-5.6-terra

No child was created. I also reproduced the same rejection from a fresh codex exec process after confirming codex features list reports both multi_agent and multi_agent_v2 as enabled.

This suggests profile discovery/config parsing is working, while the child dispatcher model catalog remains limited to Sol/Terra. It is therefore not Windows-specific and persists in CLI 0.146.0.

ViperJuice · 22 days ago

Confirming the same model-catalog versus subagent-allowlist mismatch from a Codex Desktop task attached to a Linux host.

Environment:

  • Codex CLI: 0.146.0
  • Host: Linux 6.8.0-106-generic x86_64
  • ChatGPT authentication
  • multi_agent: stable/enabled
  • multi_agent_v2: stable/disabled in local config
  • models_cache client version: 0.146.1, fetched 2026-08-05

The freshly fetched local model catalog lists gpt-5.6-luna with visibility=list, and Luna is selectable as the primary agent in the ChatGPT/Codex model selector. However, the spawn_agent contract generated for this task exposes only gpt-5.6-sol and gpt-5.6-terra as valid model overrides; gpt-5.6-luna is absent.

This indicates that primary-model availability and the subagent worker allowlist are diverging. There is no local config key in this environment that controls that allowlist. We are using Terra workers as a temporary fallback.

daniel-gll · 18 days ago

Same here. Just commenting for visibility, as it's been 3 weeks and this is still open.

Ch1ldr3n · 17 days ago

I can reproduce the same model-catalog mismatch on a newer Windows Codex Desktop build.

Environment:

  • Codex Desktop package: 26.803.8161.0 (read from the installed Windows package path)
  • Platform: Windows x64
  • Subscription tier: not exposed to the agent, so I am not guessing
  • Bundled CLI version: not independently verified because the executable under C:\Program Files\WindowsApps\... is access-restricted from the tool shell

Current behavior in the same Desktop session:

  • The parent-thread model picker offers GPT-5.6 Luna, including Max reasoning.
  • The native collaboration.spawn_agent tool schema exposes only these explicit model overrides: gpt-5.6-sol and gpt-5.6-terra.
  • gpt-5.6-luna is absent from that schema/allowlist, so a Luna child agent cannot be selected even though Luna is selectable for the parent thread.

This is therefore still reproducible on Desktop package 26.803.8161.0, newer than the originally reported 26.715.9868.0. The mismatch appears to be between the Desktop model catalog/picker and the model allowlist supplied to native spawn_agent, rather than a user prompt or reasoning-effort error.

Official model guidance also lists gpt-5.6-luna and says GPT-5.6 supports Max reasoning: https://developers.openai.com/api/docs/guides/latest-model

Athermal · 15 days ago

same problem

unhingedpanda · 14 days ago

+1. please get this done.