[BUG] --dangerously-skip-permissions sometimes still asks for permissions?
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 am running (under podman; via https://github.com/con/yolo/blob/main/bin/yolo) claude --dangerously-skip-permissions --name=proj_SENSORED --resume and it claude still asks for some permissions.
I believe it was not like that before I introduced --name into such invocations and updated container's bundled claude to the most recent from whatever I had before.
I found prior similar report
which was addressed/closed back then. I reused the title since good descriptor.
Here is an example trimmed a little
❯ CLAUDE_CODE_OAUTH_TOKEN=$(cat ~/SENSORED) yolo -- 'Review https://github.com/...
▐▛███▜▌ Claude Code v2.1.81
▝▜█████▛▘ Opus 4.6 (1M context) · Claude API
▘▘ ▝▝ /home/yoh/doc/papers.withothers/202x-yoda-examples
❯ Review https://github.com/...
...
╌╌╌╌╌╌╌
Do you want to create PR-reply.md?
❯ 1. Yes
2. Yes, allow all edits during this session (shift+tab)
3. No
Esc to cancel · Tab to amend
and underlying process:
yoh 1403340 0.0 0.0 18032 12104 pts/40 Ss Mar21 0:13 | \_ zsh
yoh 2317019 0.0 0.0 7384 3700 pts/40 S+ Mar22 0:00 | | \_ /bin/bash /home/yoh/.local/bin/yolo -- Review https://github.com/...
yoh 2317039 0.3 0.0 1952712 48260 pts/40 Sl+ Mar22 6:20 | | \_ podman run --log-driver=none -it --rm --user=SENSORED:SENSORED --userns=keep-id --name=doc_papers.withothers_202x-yoda-examples-2317019 -v /home/yoh/.claude:/home/yoh/.claude:z -v /home/yoh/.gitconfig:/tmp/.gitconfig:ro,z -v /home/yoh/doc/papers.withothers/202x-yoda-examples:/home/yoh/doc/papers.withothers/202x-yoda-examples:z -w /home/yoh/doc/papers.withothers/202x-yoda-examples -e CLAUDE_CONFIG_DIR=/home/yoh/.claude -e GIT_CONFIG_GLOBAL=/tmp/.gitconfig -e CLAUDE_CODE_OAUTH_TOKEN -e CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS -v /home/yoh/proj/misc/congo:/home/yoh/proj/misc/congo:Z -v /home/yoh/proj/CON/serve:/home/yoh/proj/CON/serve:ro -v /home/yoh/proj/datalad/trash:/home/yoh/proj/datalad/trash:ro -v /home/yoh/doc/papers.withothers/2026-data-hoarder:/home/yoh/doc/papers.withothers/2026-data-hoarder:Z -v /home/yoh/doc/papers.withothers/202x-yoda-overleaf:/home/yoh/doc/papers.withothers/202x-yoda-overleaf:Z -v /home/yoh/proj/datalad/ci/:/home/yoh/proj/datalad/ci/:ro -v /home/yoh/proj/CON/skills:/home/yoh/proj/CON/skills:Z con-bomination-claude-code claude --dangerously-skip-permissions --name=doc_papers.withothers_202x-yoda-examples-2317019 Review https://github.com/...
What Should Happen?
Should not ask for such permissions due to --dangerously-skip-permissions
Error Messages/Logs
Steps to Reproduce
N/A
Claude Model
Sonnet (default)
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.1.81
Platform
Anthropic API
Operating System
Ubuntu/Debian Linux
Terminal/Shell
Other
Additional Information
❯ cat ~/.claude/settings.json
{
"cleanupPeriodDays": 99999,
"permissions": {
"allow": [
"Bash(cat:*)",
"Bash(codespellit:*)",
"Bash(curl:*)",
"Bash(git grep:*)",
"Bash(git log:*)",
"Bash(git ls-tree:*)",
"Bash(git reflog:*)",
"Bash(grep:*)",
"Bash(ls:*)",
"Bash(shellcheckit:*)",
"Bash(tox:*)",
"Bash(wget:*)",
"Bash(zcat:*)",
"Bash(zgrep:*)",
"Fetch(https://github.com/*)",
"WebFetch(domain:*.readthedocs.io)",
"WebFetch(domain:pypi.org)",
"WebFetch(domain:github.com)",
"WebFetch(domain:raw.githubusercontent.com)"
],
"deny": [
"Read(./.env)",
"Read(./.env.*)",
"Read(*/.*.priv)"
]
},
"model": "opus[1m]",
"skipDangerousModePermissionPrompt": true
}
❯ cat ~/.claude/settings.local.json
{
"permissions": {
"allow": [
"Bash(echo:*)",
"Bash(systemctl --user show-environment:*)",
"Bash(localectl status:*)",
"Bash(gsettings get:*)",
"Bash(test:*)",
"Bash(journalctl:*)",
"Bash(top:*)",
"Bash(ps:*)",
"Bash(bluetoothctl devices:*)",
"Bash(bluetoothctl:*)",
"Bash(swapon:*)",
"Bash(which gnome-network-displays 2>/dev/null && dpkg -l gnome-network-displays 2>/dev/null | grep ^ii)",
"Bash(systemctl --user status wpa_supplicant 2>/dev/null; systemctl status wpa_supplicant 2>/dev/null | head -10)",
"Bash(lsusb 2>&1)",
"Bash(dmesg | grep -i -E 'usb|snow|blue|mic' | tail -40)",
"Bash(which uhubctl 2>/dev/null || dpkg -l uhubctl 2>/dev/null || echo \"uhubctl not installed\")"
]
},
"enableAllProjectMcpServers": false
}This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗