C:/Program Files/Git/clear should reset permission mode to defaultMode from settings
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
SessionStarthook fires withsource: "clear"after/clear, but hooks receivepermission_modeas read-only input and cannot change it - There's currently no workaround — the only option is manually switching via
Shift+Tabor/planafter every/clear
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗