codex icon indicating copy to clipboard operation
codex copied to clipboard

Regression: luna cannot be specified in spawn_agent tool model anymore, e.g. for Explorer

Open runfence opened this issue 4 months ago • 6 comments

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

26.715.21425

What subscription do you have?

$100

What platform is your computer?

Windows

What issue are you seeing?

My sol thread can spawn terra and sol sub-agents but cannot spawn luna sub-agents anymore. This was possible in previous versions.

What steps can reproduce the bug?

Ask sol: "spawn an Explorer sub-agent, set model/effort to gpt-5.6-luna medium, set hidden field 'fork_steps' to 'none', ask it to output OK"

What is the expected behavior?

No response

Additional information

Image

runfence avatar Jul 18 '26 14:07 runfence

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

  • #32988
  • #33126

Powered by Codex Action

github-actions[bot] avatar Jul 18 '26 14:07 github-actions[bot]

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

* [[Release blocker] Backport #32749: stable Codex breaks model-routed subagent plugins #32988](https://github.com/openai/codex/issues/32988)

* [Subagents being launched as same model as parent agent with no change option #33126](https://github.com/openai/codex/issues/33126)

Powered by Codex Action

This issue is not a duplicate of them. It is specifically about luna. Spawning sub-agents when specifying other models works for me.

runfence avatar Jul 18 '26 14:07 runfence

Can confirm this is happening to me as well. It seems currenlty the Sol and Terra Models are affected

MoodyMarshmallow avatar Jul 19 '26 05:07 MoodyMarshmallow

This is not Windows-specific.

The rejecting behavior was introduced by commit 92938d8 / [PR #32751](https://github.com/openai/codex/pull/32751), “Restrict spawned-agent models to the active backend.”

That commit added this V2 compatibility gate:

multi_agent_version != MultiAgentVersion::V2
    || model.multi_agent_version == Some(multi_agent_version)

It is applied both when advertising spawn_agent model overrides and when validating the requested model. The current catalog marks Sol and Terra as v2, but Luna as v1, so a V2 parent rejects Luna before reaching any platform-specific code.

This is not limited to Luna. With this gate, a V2 parent also rejects gpt-5.5, gpt-5.4, gpt-5.4-mini, gpt-5.3-codex-spark, and gpt-5.2 as explicit spawn_agent overrides. In practice, Sol and Terra parents are restricted to spawning Sol or Terra.

0xdeafbeef avatar Jul 19 '26 10:07 0xdeafbeef

Independent confirmation from a Windows Codex Desktop session.

Environment:

  • Host CLI: codex-cli 0.144.6
  • codex debug models lists gpt-5.6-luna with visibility=list, supported_in_api=true, and supported efforts low, medium, high, xhigh, max.
  • multi_agent=true and multi_agent_v2=true.
  • Local config contains no model allowlist; it only sets a Terra root default and agent thread/depth limits.

Observed behavior:

  • The native spawn_agent parameter named model is a per-child model override, not a declaration of which models support subagents.
  • In this V2 session the tool exposes the override, but its allowed values are only gpt-5.6-sol and gpt-5.6-terra; gpt-5.6-luna is excluded before a spawn can be requested.
  • Thus Luna is locally available and eligible in the model catalog, but unavailable specifically as a child-model override.

This independently matches the cross-backend filter introduced by #32751 / commit 92938d8. Please consider allowing cross-backend child routing (or dispatching the child through its own compatible backend) instead of filtering Luna out of the schema. If cross-backend routing is intentionally unsupported, the UI/tool documentation should state that explicitly; silent schema omission makes model-specialized subagent workflows impossible.

SeanZhang226 avatar Jul 19 '26 19:07 SeanZhang226

Would be great to get this patched. Being forced to dispatch subagents with Terra instead of Luna is much slower and usage-hungrier.

bernatfp avatar Jul 20 '26 13:07 bernatfp

Indeed.

eugenp avatar Jul 20 '26 15:07 eugenp

Workaround I'm using:

I have a custom model catalog (with custom dev prompts) that explicitly sets all models to support multi-agent-v2. Since 0.145.0 got enough feature parity from multi-agent-v2 with multi-agent v1, this was the minimal fix required that replaced my old "use v1 everywhere" approach.

  1. Dump the model cache with codex debug models > ~/.codex/model-catalog-v2.json
  2. Update each model to multi_agent_version = "v2"
  3. Add model_catalog_json = "/home/<your-name>/.codex/model-catalog-v2.json" (or windows equivalent) to the top of ~/.codex/config.toml

alsi-lawr avatar Jul 22 '26 08:07 alsi-lawr

use tmux and communicate between panes simply. much easier

gozenc avatar Jul 24 '26 11:07 gozenc

use tmux and communicate between panes simply. much easier

At this point you can use other harness. It's not a solution and it does not help

0xdeafbeef avatar Jul 24 '26 11:07 0xdeafbeef