Skip to content

Custom subagent role silently inherits parent model/effort on CLI 0.144.5 (Windows) #33667

Open

Description

@Harisimo

Related to #14671, which was closed, but reproducible on the current Windows CLI.

Environment

  • Codex CLI 0.144.5
  • Windows
  • Parent session: gpt-5.6-terra / medium
  • multi_agent_v2 enabled for this one test invocation

Reproduction

Created a valid custom role at $CODEX_HOME/agents/luna-canary.toml:

name = "luna_canary"
model = "gpt-5.6-luna"
model_reasoning_effort = "low"
description = "Canary profile for a narrow, read-only sub-agent model-routing test."
developer_instructions = "You are a canary sub-agent. Complete only the requested read-only task. Do not edit files or run shell commands."

Then ran a read-only canary requesting exactly one luna_canary child. The named custom subagent was accepted, spawned, and returned CANARY_OK.

Actual behavior

The persisted child-session turn_context recorded:

model = "gpt-5.6-terra"
effort = "medium"
multi_agent_version = "v2"

Those are the parent settings, not the role's explicit Luna/low settings. The role name and instructions were applied, but its model and reasoning configuration were silently ignored.

Expected behavior

The child should run as gpt-5.6-luna with low effort, or Codex should fail clearly before spawning. Silent substitution makes cost and compute governance impossible.

Please expose the effective child model/effort in the UI and logs, and ensure that valid role overrides either take effect or produce an explicit error.

Activity

  1. added
    bug
    CLI
    windows-os
    subagent
    config
    on Jul 16, 2026
  2. github-actions commented on Jul 16, 2026

    @github-actions
    Contributor

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

    Powered by Codex Action

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

    CLIbugconfigsubagentwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions