Dangerous/bypass mode still prompts for some Bash commands

Resolved 💬 4 comments Opened Mar 26, 2026 by afrancke Closed Apr 29, 2026

Description

When running Claude Code in "bypass permissions" / dangerous mode, certain Bash commands still trigger permission prompts. This appears to be a bug — dangerous mode should skip the allow/deny check entirely.

Reproduction

With Claude Code in dangerous/bypass mode, the following commands still prompted:

  1. echo with append redirect:

``
echo "| 2026-03-26 | task-name | description |" >> /path/to/session-log.md
``

  1. Variable assignment + heredoc append:

``
TS=$(date -Iseconds) && cat >> ~/activity-log.jsonl << EOF
{"ts": "$TS", "event": "session_end", "project": "foo"}
EOF
``

These are standard logging operations with no destructive potential.

Expected behavior

No permission prompts in dangerous/bypass mode.

Actual behavior

Permission prompt appears asking to allow the command.

Environment

  • Claude Code on macOS (Darwin 25.3.0)
  • Permission mode: Dangerous / bypass

View original on GitHub ↗

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