[BUG] dontAsk mode activates unexpectedly without user action
Status Closed — not planned
Maintainer reply None cached
Activity 4 comments · opened Jan 10, 2026 · closed Feb 27, 2026
Description
The dontAsk permission mode is activating unexpectedly during normal Claude Code usage, without any user action to enable it.
Evidence
- User sees "don't ask on (shift+tab to cycle)" displayed in the Claude Code UI
- However, when cycling through modes with shift+tab,
dontAskis NOT one of the available options (only default, plan, acceptEdits appear) - User has NOT set
"defaultMode": "dontAsk"in any settings file (verified by checking.claude/settings.json,.claude/settings.local.json, and~/.claude/settings.json) - User did NOT launch Claude Code with
--permission-mode=dontAskflag - The mode has activated multiple times during a single session
Expected Behavior
dontAsk mode should only activate when:
- Explicitly set in settings.json via
"defaultMode": "dontAsk" - Passed as a command line flag
--permission-mode=dontAsk
Actual Behavior
dontAsk mode activates on its own during normal usage, causing tools to be auto-denied with the error:
Permission to use [tool] has been auto-denied in dontAsk mode.
Environment
- Platform: Linux (WSL2)
- Claude Code launched from terminal
Possibly Related Issues
- #11881 - Plan mode was automatically enabling dontAsk mode (marked as fixed)
- #11934 - Sub-agents auto-denied in dontAsk mode
This may be a regression or a different manifestation of the same underlying issue.
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗