Skip to content

Main thread kills subagents too eagerly #12844

@smileBeda

Description

@smileBeda

What version of Codex CLI is running?

0.105.0

What subscription do you have?

PRO

Which model were you using?

gpt-5.3-codex xhigh

What platform is your computer?

Mac

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

terminal

What issue are you seeing?

I see it to often that main thread polls for subagent status, says "it is still working, I am prepping a fix anyway in case it hangs" and then later kills the subagent, only to find half-edited files that the subagent was editing.

What steps can reproduce the bug?

Not sure, I use subagents, they work, but sometimes they take time, and main thread, in his eagerness to be fast, kills them

What is the expected behavior?

NO killing of subagents!

Additional information

Image Example that is really detrimental: - wasted a ton of tokens - then killed subagent - realized stuff is now broken since it had still work to do the subagent - had to redo all that work again and fix it up

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingsubagentIssues involving subagents or multi-agent features

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions