Skip to content

max_threads not working since gpt-5.6(-sol) #32245

Closed

Description

@jordi735

What version of Codex CLI is running?

codex-cli 0.144.1

What subscription do you have?

X20

Which model were you using?

gpt-5.6-sol

What platform is your computer?

Linux Mint 22.3.0 (Zena)

What terminal emulator and version are you using (if applicable)?

Alacritty 0.17.0

Codex doctor report

Removed this after solving to save some space

What issue are you seeing?

Before today I had my max_threads on 50 and I could simply ask Codex to "Spawn one subagent per failing test file" to figure things out. It would spawn, say, 16 subagents, one for each test file and those would then report back.

We are currently limited to 4 threads (so 3 subagents + the main) it seems. I've tried changing stuff around in the config files but to no real avail. Prompts like this still work, but now it gets limited to just 3 in parallel - meaning that getting a report on 16 failing test files kind of takes ages now.

What steps can reproduce the bug?

  1. Delete ~/.codex for a fresh start
  2. codex --yolo to generate a fresh ~/.codex directory
  3. Login to your OpenAI account and close codex.
  4. In the newly generated ~/.codex/config.toml add max_threads = 10 under [agents].
  5. codex --yolo
  6. Ask it to create 10 (no-fork) subagents in parallel that all run sleep 120
  7. It will create 3, wait for the 3 to finish, then create another 3, etc etc.

What is the expected behavior?

It creates 9 subagents (10 in total with the main agent) that all sleep.

Additional information

codex doctor --json shows failures because I have codex locally (~/.local/bin) installed instead of globally. This always used to be fine and I don't see how this would affect the max_threads thing.

Activity

  1. added
    CLIIssues related to the Codex CLI
    subagentIssues involving subagents or multi-agent features
    configIssues involving config.toml, config keys, config merging, or config updates
    on Jul 10, 2026
  2. jordi735 commented on Jul 10, 2026

    @jordi735
    Author

    Got it after some more screwing around. I'll leave this up in case someone stumbles across it.

    Remove:

    [agents]
      max_threads = 10
    

    Add:

    [features.multi_agent_v2]
      enabled = true
      max_concurrent_threads_per_session = 10
    
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

    CLIIssues related to the Codex CLIbugSomething isn't workingconfigIssues involving config.toml, config keys, config merging, or config updatessubagentIssues involving subagents or multi-agent features

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions