[Bug] Bash permission allowlist not matching piped commands correctly
Resolved 💬 3 comments Opened Feb 24, 2026 by jamesdgaines Closed Feb 28, 2026
Bug Description
even though i have setup my settings.json to have
{
"permissions": {
"allow": [
"Bash(grep:*)",
"Bash(find:*)",
"Bash(cat:*)",
"Bash(wc:*)",
"Bash(head:*)",
"Bash(tail:*)",
"Bash(npx vitest:*)",
"Bash(npm run:*)",
"Bash(VITEST_MAX_WORKERS=*)",
"Bash(|grep)",
"Bash(|tail)",
"Bash(|head)",
"Bash(|wc)",
"Bash(| grep)",
"Bash(| tail)",
"Bash(| head)",
"Bash(| wc)"
]
}
}
i am constantly caught approving grep, find head and tail commands. it is maddening.
Environment Info
- Platform: darwin
- Terminal: Apple_Terminal
- Version: 2.1.50
- Feedback ID: e92a71a8-5c61-4ad4-91fb-787909df56ac
Errors
[{"error":"Error: Request was aborted.\n at makeRequest (/$bunfs/root/claude:301:3940)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-02-24T02:55:38.853Z"},{"error":"Error: File does not exist. Note: your current working directory is /Users/linguini/Documents/knead.\n at call (/$bunfs/root/claude:4823:6302)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-02-24T02:59:12.369Z"},{"error":"Error\n at call (/$bunfs/root/claude:4823:6302)\n at processTicksAndRejections (unknown:7:39)","timestamp":"2026-02-24T03:12:19.048Z"},{"error":"Error: File does not exist. Note: your current working directory is /Users/linguini/Documents/knead.\n at call (/$bunfs/root/claude:4823:6302)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-02-24T03:12:23.400Z"},{"error":"Error: File does not exist. Note: your current working directory is /Users/linguini/Documents/knead.\n at call (/$bunfs/root/claude:4823:6302)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-02-24T03:12:25.535Z"},{"error":"Error: File does not exist. Note: your current working directory is /Users/linguini/Documents/knead. Did you mean product-matcher.ts?\n at call (/$bunfs/root/claude:4823:6302)\n at async <anonymous> (/$bunfs/root/claude:5003:1808)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-02-24T03:29:17.576Z"},{"error":"Error: File does not exist. Note: your current working directory is /Users/linguini/Documents/knead.\n at call (/$bunfs/root/claude:4823:6302)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-02-24T04:00:47.355Z"},{"error":"Error: File does not exist. Note: your current working directory is /Users/linguini/Documents/knead.\n at call (/$bunfs/root/claude:4823:6302)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-02-24T04:00:47.363Z"},{"error":"FileTooLargeError: File content (313.5KB) exceeds maximum allowed size (256KB). Please use offset and limit parameters to read specific portions of the file, or use the GrepTool to search for specific content.\n at lj_ (/$bunfs/root/claude:960:820)\n at async QaB (/$bunfs/root/claude:4818:2402)\n at async call (/$bunfs/root/claude:4823:6004)\n at async Qj7 (/$bunfs/root/claude:2006:15034)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-02-24T04:08:23.603Z"},{"error":"FileTooLargeError: File content (510.3KB) exceeds maximum allowed size (256KB). Please use offset and limit parameters to read specific portions of the file, or use the GrepTool to search for specific content.\n at lj_ (/$bunfs/root/claude:960:820)\n at async QaB (/$bunfs/root/claude:4818:2402)\n at async call (/$bunfs/root/claude:4823:6004)\n at async <anonymous> (/$bunfs/root/claude:5003:1808)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-02-24T04:28:24.200Z"},{"error":"MaxFileReadTokenExceededError: File content (25086 tokens) exceeds maximum allowed tokens (25000). Please use offset and limit parameters to read specific portions of the file, or use the GrepTool to search for specific content.\n at haB (/$bunfs/root/claude:4814:21391)\n at async QaB (/$bunfs/root/claude:4818:2464)\n at async call (/$bunfs/root/claude:4823:6004)\n at async Qj7 (/$bunfs/root/claude:2006:15034)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-02-24T04:30:22.558Z"},{"error":"Error\n at zj (/$bunfs/root/claude:92:1144)\n at <anonymous> (/$bunfs/root/claude:93:10097)\n at emit (node:events:92:22)\n at endReadableNT (internal:streams/readable:861:50)\n at processTicksAndRejections (native:7:39)\n at request (/$bunfs/root/claude:95:2149)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-02-24T13:35:00.435Z"},{"error":"Error: File does not exist. Note: your current workin…
Note: Content was truncated.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗