You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Retain queued prompts when temporarily switching to subagent thread #13180
If you want to continuously run more than one agent and retain ephemeral state like queued prompts, you can open multiple terminals, one for each thread.
If you'd like to suggest an alternative behavior, feel free to open a feature request, and we'll see if it gets upvoted by the community.
I want to check if my report was unclear/misunderstood. I'm not trying to run multiple interactive sessions, which is what I take "continuously run more than one agent" to mean. I only switch focus briefly to inspect a subagent, then switch back. For reasons like checking what prompt was sent by the main agent, seeing how it's going about it, seeing why 1 sub-agent out of 4 that got the same prompt is still running long after the other 3 finished, etc.
So, I'm not looking to have Codex CLI avoid running multiple terminals for situations where that should be done. I'm looking for Codex to not silently drop a queued action when I temporarily view another thread.
In this workflow, queued prompts on the main agent are silently removed. Even if queue state is ephemerial by design, losing queued work without warning is surprising and looks like a bug.
If this behavior is desired, I think it would be worth having it explain the queue list will be cleared and ask for permission before switching, if the queue is not empty.
changed the title [-]Queued prompts disappear and never run after switching agents[/-][+]Retain queued prompts when temporarily switching to subagent thread[/+]on Mar 1, 2026
Activity
github-actions commentedon Mar 1, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
/agentrepeatsrequest_user_inputelicitation #12591Powered by Codex Action
etraut-openai commentedon Mar 1, 2026
This is by design, not a bug.
If you want to continuously run more than one agent and retain ephemeral state like queued prompts, you can open multiple terminals, one for each thread.
If you'd like to suggest an alternative behavior, feel free to open a feature request, and we'll see if it gets upvoted by the community.
darlingm commentedon Mar 1, 2026
I want to check if my report was unclear/misunderstood. I'm not trying to run multiple interactive sessions, which is what I take "continuously run more than one agent" to mean. I only switch focus briefly to inspect a subagent, then switch back. For reasons like checking what prompt was sent by the main agent, seeing how it's going about it, seeing why 1 sub-agent out of 4 that got the same prompt is still running long after the other 3 finished, etc.
So, I'm not looking to have Codex CLI avoid running multiple terminals for situations where that should be done. I'm looking for Codex to not silently drop a queued action when I temporarily view another thread.
In this workflow, queued prompts on the main agent are silently removed. Even if queue state is ephemerial by design, losing queued work without warning is surprising and looks like a bug.
If this behavior is desired, I think it would be worth having it explain the queue list will be cleared and ask for permission before switching, if the queue is not empty.
etraut-openai commentedon Mar 1, 2026
Ah, I missed the fact that you're switching to subagents rather than separate threads.
Reopening and changing from a bug report to an enhancement request.
[-]Queued prompts disappear and never run after switching agents[/-][+]Retain queued prompts when temporarily switching to subagent thread[/+]etraut-openai commentedon Apr 3, 2026
This feature request hasn't received enough upvotes, so closing.