Claude Code bug: Read deny rules make every post-cd compound command prompt for approval
railapex · ghdev · 2026-09-03
A reproducible Claude Code bug (v2.1.257–2.1.259, Windows Git Bash) shows that with any Read() deny rule configured (e.g. Read(/.env)), every compound Bash command containing cd followed by a relative-path read triggers a manual approval — even when the cd target is an absolute literal path, and reportedly even in bypass-permissions mode. Subagent Bash calls surface one prompt per file read in the parent session. The author verified with headless probes (claude -p --permission-mode auto) capturing exact tool inputs: cd D:/repo && sed ... alone is allowed, but adding ; or an echo triggers the cd-compound-read guard, which cannot statically resolve post-cd relative paths.
More from coding & agent
- Salesforce research: buyer agents concede too easily, images boost persuasion ~17% — msrivastav13 · 2026-12-05
- Grok Build launches agent-driven post-quantum cryptography migration after NSA advisory, with $1,000 credits — ns123abc · 2026-12-05
- Seroter's reading list: post-quantum prep, agent harnesses, and life after 99% AI code — rseroter · 2026-12-05
- WSDM Cup 2027 Offers $10k to Build Autonomous Community Notes Agents — sanmikoyejo · 2026-12-05
- Trying Copilot Studio MCP for agent cloning and Power Automate sync: janky but workable — koltregaskes · 2026-12-05
- xAI launches Grok Bot: autonomous AI teammates that live in Slack and Teams — Baconbrix · 2026-12-05