[Bug] Intermittent Bash Command Execution Timeout

Resolved 💬 2 comments Opened Sep 25, 2025 by Anekoique Closed Sep 25, 2025

Bug Description
unable to execute bash commands sometimes(timeout)

Environment Info

  • Platform: linux
  • Terminal: alacritty
  • Version: 1.0.123
  • Feedback ID: eea0326e-2983-4506-9573-de2c98a37981

Errors

[{"error":"Error: Failed to create shell snapshot: Command failed: /usr/bin/bash -c -l SNAPSHOT_FILE=/home/ctoluu/.claude/shell-snapshots/snapshot-bash-1758781832553-ckyl99.sh\n      source \"/home/ctoluu/.bashrc\" < /dev/null\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      \n      echo \"# Functions\" >> \"$SNAPSHOT_FILE\"\n      \n      # Force autoload all functions first\n      declare -f > /dev/null 2>&1\n      \n      # Now get user function names - filter system ones and give the rest to eval in b64 encoding\n      declare -F | cut -d' ' -f3 | grep -vE '^(_|__)' | while read func; do\n        # Encode the function to base64, preserving all special characters\n        encoded_func=$(declare -f \"$func\" | base64 )\n        # Write the function definition to the snapshot\n        echo \"eval \\\"\\$(echo '$encoded_func' | base64 -d)\\\" > /dev/null 2>&1\" >> \"$SNAPSHOT_FILE\"\n      done\n    \n      echo \"# Shell Options\" >> \"$SNAPSHOT_FILE\"\n      shopt -p | head -n 1000 >> \"$SNAPSHOT_FILE\"\n      set -o | grep \"on\" | awk '{print \"set -o \" $1}' | head -n 1000 >> \"$SNAPSHOT_FILE\"\n      echo \"shopt -s expand_aliases\" >> \"$SNAPSHOT_FILE\"\n    \n      echo \"# Aliases\" >> \"$SNAPSHOT_FILE\"\n      # Filter out winpty aliases on Windows to avoid \"stdin is not a tty\" errors\n      # Git Bash automatically creates aliases like \"alias node='winpty node.exe'\" for\n      # programs that need Win32 Console in mintty, but winpty fails when there's no TTY\n      if [[ \"$OSTYPE\" == \"msys\" ]] || [[ \"$OSTYPE\" == \"cygwin\" ]]; then\n        alias | grep -v \"='winpty \" | sed 's/^alias //g' | sed 's/^/alias -- /' | head -n 1000 >> \"$SNAPSHOT_FILE\"\n      else\n        alias | sed 's/^alias //g' | sed 's/^/alias -- /' | head -n 1000 >> \"$SNAPSHOT_FILE\"\n      fi\n  \n      \n      \n      # Check for rg availability\n      echo \"# Check for rg availability\" >> \"$SNAPSHOT_FILE\"\n      echo \"if ! command -v rg >/dev/null 2>&1; then\" >> \"$SNAPSHOT_FILE\"\n      echo '  alias rg='\"'/home/ctoluu/.nvm/versions/node/v22.15.0/lib/node_modules/\\@anthropic-ai/claude-code/vendor/ripgrep/x64-linux/rg'\" >> \"$SNAPSHOT_FILE\"\n      echo \"fi\" >> \"$SNAPSHOT_FILE\"\n      \n      # Add PATH to the file\n      echo \"export PATH=/home/ctoluu/toolchain/vivado/Xilinx/Vitis/2024.2/bin\\:/home/ctoluu/toolchain/vivado/Xilinx/Vitis_HLS/2024.2/bin\\:/home/ctoluu/toolchain/vivado/Xilinx/Model_Composer/2024.2/bin\\:/home/ctoluu/toolchain/vivado/Xilinx/Vivado/2024.2/bin\\:/home/ctoluu/toolchain/vivado/Xilinx/DocNav\\:/home/ctoluu/toolchain/oss-cad-suite/bin\\:/home/ctoluu/toolchain/loongarch64-linux-musl-cross/bin\\:/home/ctoluu/toolchain/riscv64-linux-musl-cross/bin\\:/home/ctoluu/toolchain/aarch64-linux-musl-cross/bin\\:/home/ctoluu/toolchain/x86_64-linux-musl-cross/bin\\:/home/ctoluu/.cargo/bin\\:/home/ctoluu/.nvm/versions/node/v22.15.0/bin\\:/home/ctoluu/miniconda3/condabin\\:/home/ctoluu/toolchain/vivado/Xilinx/Vitis/2024.2/bin\\:/home/ctoluu/toolchain/vivado/Xilinx/Vitis_HLS/2024.2/bin\\:/home/ctoluu/toolchain/vivado/Xilinx/Model_Composer/2024.2/bin\\:/home/ctoluu/toolchain/vivado/Xilinx/Vivado/2024.2/bin\\:/home/ctoluu/toolchain/vivado/Xilinx/DocNav\\:/home/ctoluu/toolchain/oss-cad-suite/bin\\:/home/ctoluu/toolchain/loongarch64-linux-musl-cross/bin\\:/home/ctoluu/toolchain/riscv64-linux-musl-cross/bin\\:/home/ctoluu/toolchain/aarch64-linux-musl-cross/bin\\:/home/ctoluu/toolchain/x86_64-linux-musl-cross/bin\\:/home/ctoluu/.cargo/bin\\:/usr/local/sbin\\:/usr/local/bin\\:/usr/bin\\:/opt/cuda/bin\\:/opt/cuda/nsight_compute\\:/opt/cuda/nsight_systems/bin

Note: Error logs were truncated.

View original on GitHub ↗

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