[Bug] Sandbox mode causes 200+ second delay on bash command results

Resolved 💬 5 comments Opened Nov 1, 2025 by mimkorn Closed Jan 18, 2026

Bug Description
Sandbox mode causes 200+ second delay on all bash commands despite instant execution

Environment:

  • Claude Code v2.0.31
  • macOS (Darwin 25.0.0)
  • Bash: /opt/homebrew/bin/bash
  • Default shell: /opt/homebrew/bin/fish

Issue:
When sandbox mode is enabled, every bash command takes 20+ seconds to return results in the UI, despite the commands themselves executing in milliseconds.

Steps to Reproduce:

  1. Enable sandbox mode: /sandbox
  2. Run any bash command, e.g., ls -lh, echo "test", pwd
  3. Observe 20+ second delay before results appear in UI

Expected Behavior:
Results should appear within milliseconds after command execution completes.

Actual Behavior:

  • Command execution: ~5-6ms (confirmed by time output)
  • Time until results visible in UI: 20+ seconds
  • Affects ALL bash commands regardless of complexity or directory
  • Affects commands in directories with/without .sdkmanrc or other configuration files

Verification:
With sandbox disabled (/sandbox disable), the same commands return instantly (~6ms total).

Impact:
Makes the Bash tool completely unusable when sandbox is enabled.

Environment Info

  • Platform: darwin
  • Terminal: iTerm.app
  • Version: 2.0.31
  • Feedback ID: fce480b0-9d68-4b8e-9357-9cae91e53466

Errors

[{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n    at Lq (/$bunfs/root/claude:1120:3185)\n    at map (native:1:11)\n    at j3 (/$bunfs/root/claude:1120:2902)\n    at VQB (/$bunfs/root/claude:1732:6559)\n    at oZ (/$bunfs/root/claude:101:19415)\n    at yn (/$bunfs/root/claude:103:42816)\n    at N1 (/$bunfs/root/claude:103:38357)\n    at Xd (/$bunfs/root/claude:103:38285)\n    at CE (/$bunfs/root/claude:103:38139)\n    at aQ (/$bunfs/root/claude:103:35218)","timestamp":"2025-11-01T12:55:01.017Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n    at Lq (/$bunfs/root/claude:1120:3185)\n    at map (native:1:11)\n    at j3 (/$bunfs/root/claude:1120:2902)\n    at VQB (/$bunfs/root/claude:1732:6559)\n    at oZ (/$bunfs/root/claude:101:19415)\n    at yn (/$bunfs/root/claude:103:42816)\n    at N1 (/$bunfs/root/claude:103:38357)\n    at Xd (/$bunfs/root/claude:103:38285)\n    at CE (/$bunfs/root/claude:103:38139)\n    at aQ (/$bunfs/root/claude:103:35218)","timestamp":"2025-11-01T12:55:08.013Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n    at Lq (/$bunfs/root/claude:1120:3185)\n    at map (native:1:11)\n    at j3 (/$bunfs/root/claude:1120:2902)\n    at VQB (/$bunfs/root/claude:1732:6559)\n    at oZ (/$bunfs/root/claude:101:19415)\n    at yn (/$bunfs/root/claude:103:42816)\n    at N1 (/$bunfs/root/claude:103:38357)\n    at Xd (/$bunfs/root/claude:103:38285)\n    at CE (/$bunfs/root/claude:103:38139)\n    at aQ (/$bunfs/root/claude:103:35218)","timestamp":"2025-11-01T12:58:07.805Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n    at Lq (/$bunfs/root/claude:1120:3185)\n    at map (native:1:11)\n    at j3 (/$bunfs/root/claude:1120:2902)\n    at VQB (/$bunfs/root/claude:1732:6559)\n    at oZ (/$bunfs/root/claude:101:19415)\n    at yn (/$bunfs/root/claude:103:42816)\n    at N1 (/$bunfs/root/claude:103:38357)\n    at Xd (/$bunfs/root/claude:103:38285)\n    at CE (/$bunfs/root/claude:103:38139)\n    at aQ (/$bunfs/root/claude:103:35218)","timestamp":"2025-11-01T12:58:19.541Z"}]

Here is a 60 seconds long gif showcasing I cannot stop the long running thing and that it takes over a minute.

!Image

View original on GitHub ↗

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