[Bug] High failure rate and repeated attempts causing rapid rate limit hits

Resolved 💬 3 comments Opened Apr 19, 2026 by TLaren Closed Apr 22, 2026

Bug Description
for my project Claude Code seems to make a lot of attempts and very high percentage fail, either to compile or the results are not as expected, a lot of the time it seems like the same thing is tried over and over again with the exact same results. And with all this I hit limits rather quickly. Also things are often forgotten, like always tell me the files that are modified, which Claude does for a bit and then doesn't. This project has a few config files that almost never get modified. two .h and 2.cpp and a yaml file.

Environment Info

  • Platform: win32
  • Terminal: null
  • Version: 2.1.112
  • Feedback ID: 05fadad1-b132-4c64-a918-6c7bd128ceaf

Errors

[{"error":"Error: Failed to create shell snapshot: Command failed: C:\\Program Files\\Git\\bin\\bash.exe -c -l SNAPSHOT_FILE='C:\\Users\\timl\\.claude\\shell-snapshots\\snapshot-bash-1776463359084-0fe02d.sh'\n      # No user config file to source\n\n      # First, create/clear the snapshot file\n      echo \"# Snapshot file\" >| \"$SNAPSHOT_FILE\"\n\n      # When this file is sourced, we first unalias to avoid conflicts\n      # This is necessary because aliases get \"frozen\" inside function definitions at definition time,\n      # which can cause unexpected behavior when functions use commands that conflict with aliases\n      echo \"# Unset all aliases to avoid conflicts with functions\" >> \"$SNAPSHOT_FILE\"\n      echo \"unalias -a 2>/dev/null || true\" >> \"$SNAPSHOT_FILE\"\n\n      echo \"shopt -s expand_aliases\" >> \"$SNAPSHOT_FILE\"\n\n      \n      # Check for rg availability\n      echo \"# Check for rg availability\" >> \"$SNAPSHOT_FILE\"\n      echo \"if ! (unalias rg 2>/dev/null; command -v rg) >/dev/null 2>&1; then\" >> \"$SNAPSHOT_FILE\"\n  \n      cat >> \"$SNAPSHOT_FILE\" << 'RIPGREP_FUNC_END'\n  function rg {\n  local _cc_bin=\"${CLAUDE_CODE_EXECPATH:-}\"\n  [[ -x $_cc_bin ]] || _cc_bin=$(command -v claude 2>/dev/null)\n  if [[ ! -x $_cc_bin ]]; then command rg \"$@\"; return; fi\n  if [[ -n $ZSH_VERSION ]]; then\n    ARGV0=rg \"$_cc_bin\" \"$@\"\n  elif [[ \"$OSTYPE\" == \"msys\" ]] || [[ \"$OSTYPE\" == \"cygwin\" ]] || [[ \"$OSTYPE\" == \"win32\" ]]; then\n    ARGV0=rg \"$_cc_bin\" \"$@\"\n  elif [[ $BASHPID != $$ ]]; then\n    exec -a rg \"$_cc_bin\" \"$@\"\n  else\n    (exec -a rg \"$_cc_bin\" \"$@\")\n  fi\n}\nRIPGREP_FUNC_END\n    \n      echo \"fi\" >> \"$SNAPSHOT_FILE\"\n  \n\n      # Add PATH to the file\n      cat >> \"$SNAPSHOT_FILE\" << 'PATH_END_tnqqw8k7w8j'\nexport PATH='/c/Users/timl/bin:/mingw64/bin:/usr/local/bin:/usr/bin:/bin:/mingw64/bin:/usr/bin:/c/Users/timl/bin:/c/Windows/system32:/c/Windows:/c/Windows/System32/Wbem:/c/Windows/System32/WindowsPowerShell/v1.0:/c/Windows/System32/OpenSSH:/c/Program Files (x86)/Common Files/Intuit/QBPOSSDKRuntime:/c/Program Files/PuTTY:/c/Program Files (x86)/Common Files/DivX Shared/DesktopService:/c/Program Files (x86)/N2 Series CMS/server/mysql/bin:/cmd:/c/Program Files/WireGuard:/c/Program Files/dotnet:/c/Program Files (x86)/WS4W:/c/Program Files/Graphviz/bin:/c/Program Files/Docker/Docker/resources/bin:/c/Program Files/WindowsPowerShell/Scripts:/c/Program Files (x86)/Windows Kits/10/Windows Performance Toolkit:/c/Users/timl/AppData/Local/Programs/Python/Python313/Scripts:/c/Users/timl/AppData/Local/Programs/Python/Python313:/c/Users/timl/AppData/Local/Programs/Python/Launcher:/c/Users/timl/AppData/Local/Microsoft/WindowsApps:/c/Users/timl/AppData/Local/Muse Hub/lib:/c/Users/timl/AppData/Local/Programs/Microsoft VS Code/bin:/c/Users/timl/.dotnet/tools:/c/Users/timl/.local/bin:/usr/bin/vendor_perl:/usr/bin/core_perl'\nPATH_END_tnqqw8k7w8j\n  \n\n      # Exit silently on success, only report errors\n      if [ ! -f \"$SNAPSHOT_FILE\" ]; then\n        echo \"Error: Snapshot file was not created at $SNAPSHOT_FILE\" >&2\n        exit 1\n      fi\n    \n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:3350:138)\n    at exitHandler (node:child_process:109:27)\n    at emit (node:events:98:22)\n    at #maybeClose (node:child_process:778:16)\n    at #handleOnExit (node:child_process:532:72)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-17T22:02:54.595Z"},{"error":"Error: 429 {\"type\":\"error\",\"error\":{\"type\":\"rate_limit_error\",\"message\":\"This request would exceed your account's rate limit. Please try again later.\"},\"request_id\":\"req_011CaAA4X8ArvXsPfShPrV8h\"}\n    at generate (B:/~BUN/root/src/entrypoints/cli.js:11:52678)\n    at makeRequest (B:/~BUN/root/src/entrypoints/cli.js:50:4943)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-17T22:48…

Note: Content was truncated.

View original on GitHub ↗

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