[BUG] /clear does not reset permission mode to defaultMode from settings

Resolved 💬 3 comments Opened Mar 6, 2026 by pestushka Closed Mar 9, 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?

I have "defaultMode": "plan" in my settings. When I start Claude Code, it correctly opens in Plan mode. During work, the mode changes to "Accept Edits" (e.g. after approving a plan). When I run /clear, the mode should reset to Plan (my default), but it stays at "Accept Edits". The only workaround is pressing Shift+Tab manually after every /clear.

What Should Happen?

/clear should reset the permission mode to the value of defaultMode from ~/.claude/settings.json, since it starts a new session.

Error Messages/Logs

Steps to Reproduce

  1. Set "defaultMode": "plan" in ~/.claude/settings.json under permissions
  2. Start a new Claude Code session — it correctly starts in Plan mode
  3. Work through a plan, approve it — mode switches to "Accept Edits"
  4. Run /clear
  5. Observe: mode stays at "Accept Edits" instead of resetting to "Plan"

Claude Model

Opus

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

2.1.70 (Claude Code)

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

iTerm2

Additional Information

_No response_

View original on GitHub ↗

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