Skip to content

spawn_agent silently advertises unfeatured models when fewer than 5 are featured #7366

Closed

Description

@Guns160

Client or integration

Codex App

Area

Catalog / models

Summary

When fewer than 5 models are featured on the Sub-agents page, the Codex spawn_agent tool advertises the featured models plus unrelated, unfeatured models that happen to sort next by catalog priority. There is no indication in the dashboard that this happens, so the effective sub-agent model list silently contains models the user never chose.

Expected: the dashboard should communicate (or control) what fills the remaining slots of Codex's 5-slot spawn_agent window when fewer than 5 models are featured.

Reproduction

  1. OpenCodex 2.88.0 managing Codex App routing; multi-agent surface v1; catalog contains routed models from more than one OpenAI-compatible provider.
  2. On the dashboard Sub-agents page, feature exactly 2 models. Featured rows get priorities 0 and 1; every non-featured routed row keeps the default priority 5.
  3. Start a new Codex session and inspect the spawn_agent tool declaration.
  4. Observed: the tool advertises 5 models — the 2 featured ones plus 3 unfeatured routed models, i.e. whichever priority-5 rows come first in catalog order.

Catalog shape involved (slugs anonymized):

<featured-model-1>   | priority: 0 | visibility: list
<featured-model-2>   | priority: 1 | visibility: list
<routed-model-a>     | priority: 5 | visibility: list   <- fills slot 3
<routed-model-b>     | priority: 5 | visibility: list   <- fills slot 4
<routed-model-c>     | priority: 5 | visibility: list   <- fills slot 5
<routed-model-d...>  | priority: 5 | visibility: list   <- tied, did not fit
... (further priority-5 rows and 1000+ account rows)

Root cause appears to be by-design sorting interacting with an undocumented fill: the comment in src/codex/catalog/build-entries.ts (~line 146) notes that Codex's models-manager sorts by priority ASC and advertises the first 5 picker-visible models to spawn_agent (MAX_MODEL_OVERRIDES_IN_SPAWN_AGENT=5). Featuring pins priorities 0..N-1, but every non-featured routed row shares default priority 5, so with <5 featured the leftover slots go to effectively arbitrary rows in catalog order.

Suggestions (any one would resolve the confusion):

  • Show a hint on the Sub-agents page when fewer than 5 models are featured, e.g. "spawn_agent also advertises the next models by catalog priority; feature 5 models to control the full list", ideally naming the models that currently fill the remaining slots.
  • Or pad the 5-slot window deterministically (e.g. from the sub-agent fallback chain) instead of raw catalog order.
  • Or document the fill behavior in the page/FAQ.

Related but distinct: #1649 (picker order for large catalogs) and #2133 (roster truncation when a featured model is disabled) — neither covers the silent fill of the spawn_agent window with unfeatured models.

Version

2.88.0

Operating system

macOS 27.0.1

Provider and model

Not provider-specific; reproduces with any routed catalog where non-featured rows share the default priority.

Logs or error output

No errors — this is a behavior/clarity issue, not a failure.

Redacted configuration

{
  "subagentModels": ["<featured-model-1>", "<featured-model-2>"],
  "injectionModel": "<featured-model-1>",
  "multiAgentMode": "v1"
}

Checks

  • I searched existing issues and documentation.
  • I removed secrets, tokens, account details, request credentials, and personal data.

Activity

  1. github-actions commented on Oct 19, 2026

    @github-actions
    Contributor

    Automated translation bookkeeping — detected language: English.

  2. added
    bug
    catalog
    provider
    on Oct 19, 2026
  3. Ingwannu commented on Oct 19, 2026

    @Ingwannu
    Owner

    Confirmed the current catalog mechanism on dev 79fa97b: build-entries.ts assigns featured ranks first and ordinary routed rows retain the next default rank, so featuring fewer rows does not mean an exclusive spawn_agent allowlist. The dashboard/advertised-roster distinction is a useful report; it is not equivalent to an inference permission boundary. Marking needs-design for the owner's choice between an explanatory hint/documentation and changing roster-fill policy. An implementation should derive any preview from the existing roster/visibility resolver, with disabled/hidden/native/account-bound and fewer-than-five controls, rather than introduce a second picker. No catalog/config sync or unsolicited GUI change was performed.

  4. added
    needs-design
    on Oct 19, 2026
  5. added a commit that references this issue on Oct 23, 2026
    e8da133
  6. lidge-jun commented on Oct 27, 2026

    @lidge-jun
    Owner

    The documentation part landed on dev in #7537 (611f403): the Sub-agents order hint now explains that when fewer than 5 featured models are visible in the picker, spawn_agent advertises the remaining slots by catalog priority, and that 5 visible featured models fill the list unless a custom model picker order changes catalog priority. Separately, #7839 (pending) keeps unfeatured native models in their upstream order behind the featured block instead of collapsing them into one band.

    Leaving this issue open for the design decision it is labelled for: whether the remaining slots should be filled by a different, deterministic policy (for example from the sub-agent fallback chain) rather than catalog priority.

  7. lidge-jun commented on Nov 3, 2026

    @lidge-jun
    Owner

    Closing: the dashboard now communicates how the remaining spawn_agent slots are filled. Since 2.94.0 the Sub-agents order hint (#7537, 611f403) says that when fewer than 5 featured models are visible, the remaining slots are advertised by catalog priority, and the sub-agent docs explain the five-slot window (#7550). #7839 also keeps unfeatured native models in their upstream order behind the featured block. A different fill policy, for example filling from the sub-agent fallback chain, would be a new behavior; please open a feature proposal if you want it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugcatalogneeds-designprovider

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions