Skip to content

Mode changes does not work with ACP #2942

Closed

Description

@josevalim

Describe the bug

I have found two bugs related to modes in ACP:

  • The agent cannot leave plan mode. Once we start plan mode and then plan is done, it should propose to execute the plan and swap modes

  • Autopilot mode has no effect. I am unsure if this is related to the separation between autopilot vs /allow-all, but it still always asks for permission. We may need autopilot to automatically enable /allow-all for ACP

Affected version

1.0.35

Steps to reproduce the behavior

I was able to reproduce those bugs both in Zed and Tidewave.

  1. Enter plan mode, ask it to plan and execute the plan. You see no tool request arrives.
  2. Simply choose autopilot and ask it to make changes and run commands. You see it will request tool permissions.

Glad to provide any more info. :)

Expected behavior

No response

Additional context

No response

Activity

  1. added theissue type on Apr 24, 2026
  2. added
    area:agentsSub-agents, fleet, autopilot, plan mode, background agents, and custom agents
    area:non-interactiveNon-interactive mode (-p), CI/CD, ACP protocol, and headless automation
    on Apr 24, 2026
  3. EL-PS commented on Apr 27, 2026

    @EL-PS

    I encountered a similar issue in the copilot-chat integrated to VSCode, there agent tell me explicitely that it's still in plan (or ask mode) and cannot start implementing (same happened when I manually switched mode).

    • I was in auto agent mode (so far it was always GPT 5.3-codex that was selected)
    • I was either in plan mode and clicked to start implementing or in ask mode and switched to agent mode manually
    • In all case despite refusing to comply to my request, my premium request budget was still consumed
    • Not sure if i could be usefull to pinpoint the issue but I'm currently at +90% of my month budget
    • I'm on an Enterprise plan
  4. patniko commented on Oct 26, 2026

    @patniko
    Collaborator

    Thanks for the report. Both parts have been addressed: switching an ACP session to autopilot now enables allow-all permissions before the mode change completes, so autopilot no longer prompts for tool, path or URL access (Copilot CLI v1.0.52), and ACP clients receive live mode updates (v1.0.81), so when the agent finishes planning and you approve its request to exit plan mode, the session leaves plan mode and the client gets a current_mode_update. A further fix to the ordering of ACP mode and permission changes is merged and will ship in v1.0.104. If either problem still reproduces in Zed or Tidewave on the latest version, please reopen with your CLI version.

    Triaged as part of a Copilot SDK backlog review, with help from GitHub Copilot.

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

    area:agentsSub-agents, fleet, autopilot, plan mode, background agents, and custom agentsarea:non-interactiveNon-interactive mode (-p), CI/CD, ACP protocol, and headless automation

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions