Skip to content

Mode switch Plan -> Code still behaves like Plan #10185

@0xdeafbeef

Description

@0xdeafbeef

What version of Codex is running?

codex-cli 0.92.0

What subscription do you have?

pro

Which model were you using?

No response

What platform is your computer?

Linux 6.18.0-364.vanilla.fc43.x86_64 x86_64 unknown

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

No response

What issue are you seeing?

  1. Start a session in Code mode.
  2. Switch to Plan mode (shift‑tab).
  3. Switch back to Code mode.
  4. Ask for an execution command (e.g., “go”).
    Observed: agent claims it’s still in Plan mode and refuses execution.
    Workaround: shift‑tab to Plan and back fixes it.
• Execution is blocked in Plan Mode despite user saying go; must respond with a status update that
  execution can't proceed until mode switches, without asking questions directly.

  Preparing user confirmation prompt

  Planning to request user confirmation to proceed with execution once mode switches, asking
  explicitly to confirm running commands now.

• I’m still in Plan Mode, which forbids executing commands. Please switch me back to code mode

What steps can reproduce the bug?

  • Plan mode instruction injected at 2026‑01‑29T18:04:55.152Z (developer message
    <collaboration_mode>).
  • Turn context later switches to Code mode at 2026‑01‑29T18:53:37.015Z (collaboration_mode:
    { mode: "code" }).
  • Despite that, at 2026‑01‑29T20:09:32.854Z the agent reasons “Execution is blocked in Plan Mode
    …” and emits a request_user_input tool call and message stating it is still in Plan Mode.

What is the expected behavior?

Shift tab removes prev instructions

Additional information

thread ID 019c0aed-2138-7b32-acf5-f3fb174f84f3

Metadata

Metadata

Assignees

No one assigned

    Labels

    CLIIssues related to the Codex CLITUIIssues related to the terminal user interface: text input, menus and dialogs, and terminal displaybugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions