C:/Program Files/Git/clear should reset permission mode to defaultMode from settings

Resolved 💬 2 comments Opened Feb 12, 2026 by VagnerVit Closed Feb 12, 2026

Problem

When defaultMode is set to "plan" in settings.json and the user switches to auto-accept mode for a quick task, running /clear keeps the auto-accept mode active instead of resetting to the configured default.

{
  "permissions": {
    "defaultMode": "plan"
  }
}

Expected behavior

/clear should reset the permission mode to defaultMode from settings (e.g., "plan"), just like starting a new session does.

Current behavior

/clear preserves the current permission mode. If you're in auto-accept/dangerously mode, you stay in it after /clear.

Use case

I prefer plan mode as my default workflow — it forces me to think before acting. I sometimes switch to auto-accept for quick tasks, but I expect /clear to reset back to my configured default so I don't accidentally stay in a permissive mode.

Additional context

  • The SessionStart hook fires with source: "clear" after /clear, but hooks receive permission_mode as read-only input and cannot change it
  • There's currently no workaround — the only option is manually switching via Shift+Tab or /plan after every /clear

View original on GitHub ↗

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