[BUG] Sandbox hangs indefinitely on Bash rg pipe command

Resolved 💬 3 comments Opened Jan 16, 2026 by jbuckmccready Closed Jan 20, 2026

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?

rg "transaction_signature" --type rust -B 3 -A 5 2>/dev/null | head -100 when run as Bash command in sandboxed Claude Code it hangs indefinitely.

I don't see any logs for sandbox denial, using log stream --predicate 'eventMessage CONTAINS "deny"' --style syslog.

What Should Happen?

Should execute the bash command. It runs fine with sandbox off, and runs fine using the sand box tool directly: srt 'rg "transaction_signature" --type rust -B 3 -A 5 2>/dev/null | head -100'

Error Messages/Logs

Steps to Reproduce

  1. Turn on Claude Code sandbox
  2. Prompt claude with execute this command: rg "transaction_signature" --type rust -B 3 -A 5 2>/dev/null | head -100

Claude Model

Opus

Is this a regression?

I don't know

Last Working Version

v2.1.9

Claude Code Version

v2.1.9

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Other

Additional Information

_No response_

View original on GitHub ↗

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