Skip to content

Plan options re-trigger on /agent switch #10442

Closed

Description

@doublemover

What version of Codex is running?

codex-cli 0.94.0

What subscription do you have?

Pro

Which model were you using?

gpt-5.2-codex

What platform is your computer?

Microsoft Windows NT 10.0.26200.0 x64

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

Windows Terminal, Powershell 7.5.4

What issue are you seeing?

After using /plan mode and confirming the choices, while the plan is being carried out, if you steer the agent to spawn additional agents to spread out and handle the task more quickly and then use /agent to swap to one of the spawned agents, using /agent again to swap back to the original agent re-triggers the already-confirmed /plan options dialogue.

I did not want to interrupt its work by re-confirming choices, so I pressed escape, which both canceled the dialogue and interrupted its work. Telling it continue allowed it to resume without issue.

What steps can reproduce the bug?

  • Use /plan mode, pick a task that lends itself well to sub-agents
  • Confirm your choices for the plan, allow it to begin carrying out the tasks
  • Steer the agent and tell it to spawn other agents so they can spread out and complete the task more efficiently
  • Use /agent to swap to one of the spawned agents and see what it's up to
  • Use /agent to swap back to the original agent
  • Plan dialogue should incorrectly re-trigger at this point
    Uploaded thread: 019c10fe-7132-79a2-859b-2eb167d93103

What is the expected behavior?

It should swap back to the original agent without re-triggering the plan dialogue

Additional information

Lengthy sessions cause extended delays when submitting /feedback, they also cause codex to hang (indefinitely?) when quitting normally

Activity

  1. added
    bug
    on Feb 3, 2026
  2. added
    CLI
    windows-os
    TUI
    on Feb 3, 2026
  3. github-actions commented on Feb 3, 2026

    @github-actions
    Contributor

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

    Powered by Codex Action

  4. removed
    windows-os
    CLI
    on Feb 3, 2026
  5. charley-oai commented on Feb 3, 2026

    @charley-oai
    Contributor

    Addressed by #10447

  6. charley-oai commented on Feb 3, 2026

    @charley-oai
    Contributor

    This should be fixed in the next release

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

    TUIbug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions