[Bug] Claude Code Silently Ignores Git Command Errors

Resolved 💬 4 comments Opened Aug 28, 2025 by mattgodbolt Closed Jan 10, 2026

Bug Description
Claude ignored errors in git commands (again, possible duplicate of it ignoring errors in git precommit hooks)

> Ok! all this is great, and code wise and improvement: please commit. BUT it still doesn't work

● Bash(git add cppcon2025/)
  ⎿  Error: warning: could not open directory 'cppcon2025/cppcon2025/': No such file or directory
     fatal: pathspec 'cppcon2025/' did not match any files

● Bash(git commit -m "Fix typing effect and clean up dead code…)
  ⎿  No (tell Claude what to do differently)

● Bash(git status)
  ⎿  Interrupted by user

> /bug 
  ⎿  Bug report submitted

Environment Info

  • Platform: linux
  • Terminal: gnome-terminal
  • Version: 1.0.96
  • Feedback ID: 46e7141b-97e3-442e-a4ab-ee301792ff96

Errors

[{"error":"Error: EISDIR: illegal operation on a directory, read\n    at readFileSync (unknown)\n    at T1Z (/$bunfs/root/claude:593:11315)\n    at call (/$bunfs/root/claude:1653:939)\n    at Ec9 (/$bunfs/root/claude:3582:11340)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-08-28T22:25:53.821Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n    at uI (/$bunfs/root/claude:1643:1192)\n    at <anonymous> (/$bunfs/root/claude:1643:2173)\n    at map (native:1:11)\n    at uI (/$bunfs/root/claude:1643:2145)\n    at map (native:1:11)\n    at uI (/$bunfs/root/claude:1643:2050)\n    at map (native:1:11)\n    at A7 (/$bunfs/root/claude:1643:905)\n    at $UW (/$bunfs/root/claude:3592:13837)\n    at Tw (/$bunfs/root/claude:230:19415)","timestamp":"2025-08-28T22:31:11.633Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n    at uI (/$bunfs/root/claude:1643:1192)\n    at <anonymous> (/$bunfs/root/claude:1643:2173)\n    at map (native:1:11)\n    at uI (/$bunfs/root/claude:1643:2145)\n    at map (native:1:11)\n    at uI (/$bunfs/root/claude:1643:2050)\n    at map (native:1:11)\n    at A7 (/$bunfs/root/claude:1643:905)\n    at $UW (/$bunfs/root/claude:3592:13837)\n    at Tw (/$bunfs/root/claude:230:19415)","timestamp":"2025-08-28T22:31:11.920Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n    at uI (/$bunfs/root/claude:1643:1192)\n    at <anonymous> (/$bunfs/root/claude:1643:2173)\n    at map (native:1:11)\n    at uI (/$bunfs/root/claude:1643:2145)\n    at map (native:1:11)\n    at uI (/$bunfs/root/claude:1643:2050)\n    at map (native:1:11)\n    at A7 (/$bunfs/root/claude:1643:905)\n    at renderToolResultMessage (/$bunfs/root/claude:1801:1038)\n    at pDW (/$bunfs/root/claude:3180:1932)","timestamp":"2025-08-28T22:31:27.518Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n    at uI (/$bunfs/root/claude:1643:1192)\n    at map (native:1:11)\n    at A7 (/$bunfs/root/claude:1643:905)\n    at eDW (/$bunfs/root/claude:3180:9114)\n    at Tw (/$bunfs/root/claude:230:19415)\n    at Rg (/$bunfs/root/claude:232:42805)\n    at bY (/$bunfs/root/claude:232:38347)\n    at fk (/$bunfs/root/claude:232:38275)\n    at hw (/$bunfs/root/claude:232:38129)\n    at sz (/$bunfs/root/claude:232:35208)","timestamp":"2025-08-28T22:31:41.582Z"},{"error":"Error: EISDIR: illegal operation on a directory, read\n    at readFileSync (unknown)\n    at T1Z (/$bunfs/root/claude:593:11315)\n    at call (/$bunfs/root/claude:1653:939)\n    at KL (/$bunfs/root/claude:1658:2957)\n    at KL (/$bunfs/root/claude:1658:3027)\n    at <anonymous> (/$bunfs/root/claude:1672:1040)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-08-28T22:31:44.698Z"},{"error":"Error: EISDIR: illegal operation on a directory, read\n    at readFileSync (unknown)\n    at T1Z (/$bunfs/root/claude:593:11315)\n    at call (/$bunfs/root/claude:1653:939)\n    at KL (/$bunfs/root/claude:1658:2957)\n    at KL (/$bunfs/root/claude:1658:3027)\n    at <anonymous> (/$bunfs/root/claude:1672:1040)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-08-28T22:35:36.267Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n    at uI (/$bunfs/root/claude:1643:1192)\n    at <anonymous> (/$bunfs/root/claude:1643:2173)\n    at map (native:1:11)\n    at uI (/$bunfs/root/claude:1643:2145)\n    at map (native:1:11)\n    at uI (/$bunfs/root/claude:1643:2050)\n    at map (native:1:11)\n    at A7 (/$bunfs/root/claude:1643:905)\n    at renderToolResultMessage (/$bunfs/root/claude:1801:1038)\n    at pDW (/$bunfs/root/claude:3180:1932)","timestamp":"2025-08-28T22:39:02.155Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n    at uI (/$bunfs/root/claude:1643:1192)\n    at map (native:1:11)\n    at A7 (/$bunfs/root/claude:1643:905)\n    at eDW (/$bunfs/root/claude:3180:9114)\n    at Tw (/$bunfs/root/claude:230:19415)\n    at Rg (/$bunfs/root/claude:232:42805)\n    at bY (/$bunfs/root/claude:232:38347)\n    at fk (/$bunfs/root/claude:232:38275)\n    at hw (/$bunfs/root/claude:2

Note: Error logs were truncated.

View original on GitHub ↗

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