Skip to content

Mode change not "sticking" #1420

@CRidge

Description

@CRidge

Describe the bug

When I go into plan mode, plan something, and then switch back to agent mode and ask it to implement the plan, quite often I see output like:

The user wants me to start working on the plan, but plan mode is still active.

In previous versions, it just started working anyway, but in 0.0.407 it prompted me: "Do you want to change out of plan mode?", even though I had already change to agent mode.

Affected version

GitHub Copilot CLI 0.0.407.

Steps to reproduce the behavior

  1. Shift+tab to start plan mode
  2. Ask to plan something
  3. Shift+tab to go out of plan mode
  4. Say "start".
  5. Get this prompt:
╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ Please switch out of plan mode with Shift+Tab, then confirm you’re ready for me to implement.                                                    │
│                                                                                                                                                  │
│ ❯ 1. Ready (out of plan mode)                                                                                                                    │
│   2. Other (type your answer)                                                                                                                    │
│                                                                                                                                                  │
│ Use ↑↓ or number keys to select, Enter to confirm, Esc to cancel                                                                                 │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

Expected behavior

Work should start in agent mode.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions