Dangerous/bypass mode still prompts for some Bash commands
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:
- echo with append redirect:
````
echo "| 2026-03-26 | task-name | description |" >> /path/to/session-log.md
- 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
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗