ExitPlanMode should restore the permission mode that was active before EnterPlanMode

Resolved 💬 3 comments Opened Apr 14, 2026 by theMattAustin Closed Apr 18, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

When entering plan mode, the previous permission mode (e.g., auto, bypassPermissions) is replaced. After exiting plan mode, the mode doesn't revert — the user has to manually reset it.

What Should Happen?

ExitPlanMode should restore whatever mode was active before EnterPlanMode was called.

Error Messages/Logs

Steps to Reproduce

  1. Go into plan mode
  2. Exit plan mode
  3. Permission goes to Edit Automatically vs original mode.

Claude Model

Opus

Is this a regression?

No, this never worked

Last Working Version

_No response_

Claude Code Version

2.1.107

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

VS Code integrated terminal

Additional Information

_No response_

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗