Repository navigation
feat(codex): allow editing multi_agent_version per model in the catalog editor - #753
Merged
lzt404 merged 2 commits intoDec 4, 2026
Merged
Conversation
…og editor In the tested Codex Desktop v2 runtime (0.173.0-alpha.4.1), a subagent's model must have multi_agent_version v2 in the catalog to receive native collaboration tools such as send_message. Root chats skip this model check. ECPA writes models without a matching official template with null, and the catalog editor rejected the field, so subagents on those models could not message other agents. Make multi_agent_version editable per model. The editor offers v3, v2, v1 and disabled, keeps any other inherited or saved value visible, and hides the control when an older backend omits the field. Validation accepts null, disabled, or v followed by one to three ASCII digits, so an inherited value such as v9 survives unrelated edits. Defaults are unchanged.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
In the tested Codex Desktop v2 runtime (
0.173.0-alpha.4.1), a subagent's model must advertisemulti_agent_version: "v2"in the model catalog to receive native collaboration tools (spawn_agent,send_message,followup_task,wait_agent,list_agents).0.173.0-alpha.4tag shows this gate. In stable0.174.0, eitherv2orv3satisfies it.References: 0.173.0-alpha.4 gate · 0.174.0 gate · 0.174.0 enum
ECPA writes every model without a matching official template (Claude, Gemini, DeepSeek, …) with
multi_agent_version: null(normalize_fallback_model), and the catalog editor can't change it. Amulti_agent_versionentry inmodel-customizations.jsonis rejected withModel field multi_agent_version cannot be modified.In the tested setup, subagents on those models therefore received none of these tools and couldn't message their parent. #519 ran into the same field restriction; it also asked for other fields, which this PR doesn't cover.
Change
multi_agent_versionis now an editable catalog field. It's opt-in and defaults are unchanged: official templates keep their own value, and models without a matching official template keep an explicitnull.Editor: a dropdown next to "Default reasoning level".
null),v3,v2,v1and "Disabled".v9, stays visible and selectable.ecpa-web(--static-dir).Validation accepts
null,disabled, orvfollowed by one to three ASCII digits.v9, survives unrelated edits. Other values, such asv1000, are rejected.0.173.0-alpha.4.1(Desktop) and0.174.0treat a version string they don't recognise as unset. This was checked by loading catalogs containingv3and an invented version. Decoder testTranslations: strings for zh-CN, en, ja, ru and pt-BR; zh-TW is generated as usual.
Main chats: this is why the setting is opt-in.
multi_agent_v2feature is off, a model's explicit version selects the multi-agent mode for main chats on that model.0.173.0-alpha.4selects v2, and stable0.174.0honours a supportedv3and otherwise uses v2.References: 0.173.0-alpha.4 precedence · 0.174.0 precedence
Downgrade note
An older ECPA rejects the whole customization file if any model in it has a
multi_agent_versionoverride. It logs the error and starts with default settings. Its next save then overwrites the file, losing the other model overrides, the model order and the review-model choice.Before downgrading, do one of these:
codex_models/model-customizations.jsonin the app data folder, then remove only themulti_agent_versionkey from every saved model entry. Use this for models that are no longer listed.null, which is itself an override when the template value isv2.Testing
Automated checks ran on this PR's tree on
devbase2592639, with the base alone as the comparison.cargo test -p ecpa-usage --lib codex_catalogpasses 54 tests (50 on the base). The 4 new tests check that:null;v3orv9template value, with an existing override on that model, doesn't block editing another model (this test fails with a fixeddisabled/v1/v2list);v2override in the generated catalog, and a reset restores the template's absent field or explicitnullexactly.bun test tests/codexModelCatalog.test.tspasses 9 tests (7 on the base).bun run checkpasses, andnode tests/codex-model-order-ui.cjspasses.null; the "Use defaults" button restores the template'sv2.v9, savedv8) stay selectable, with no duplicate options; an older-backend snapshot hides the control, and an unrelated edit sends 13 fields.0.173.0-alpha.4.1: with"multi_agent_version": "v2"set by hand in the generated catalog forclaude-opus-5-5, an Opus subagent received the collaboration tools and deliveredsend_messageto its parent. Before, it had none. This used a hand-edited catalog, not a build of this branch, and the packaged app wasn't built.dev2592639are unchanged with this PR: 3 intests/i18n.test.ts, 3 in theecpa-usageusage-database tests, and 2 intests/browserMockRuntime.test.ts.Screenshots
Catalog editor with the new dropdown (mock backend), English and zh-CN:
Refs #519