[BUG] increasing timeout environmental variable

Resolved 💬 8 comments Opened Jun 6, 2025 by achimstruve Closed Jun 8, 2025

Environment

  • Platform (select one):
  • [ ] Anthropic API
  • [ ] AWS Bedrock
  • [ ] Google Vertex AI
  • [x ] Other: Local Windows
  • Claude CLI version: 1.0.16
  • Operating System: Windows 11 with WSL
  • Terminal: command window on windows via WSL

Bug Description

I am getting this error: Error: Command timed out after 2m 0.0s once I run a longer bash command, such as installing the dependencies of an environment, which can take some time..

Using the approach outlined in the documentation doesn't work for me.

I have a local project .claude/settings.local.json file that looks like this:

```json{
"permissions": {
"allow": [
"Bash(mkdir:*)",
"Bash(python3:*)",
"Bash(sudo apt:*)",
"Bash(sudo apt install:*)",
"Bash(ls:*)",
"Bash(source:*)",
"Bash(pip install:*)",
"Bash(node:*)",
"Bash(npm --version)",
"Bash(npm install)",
"Bash(rm:*)"
],
"deny": []
}
"env": {
"BASH_DEFAULT_TIMEOUT_MS": "900000",
"BASH_MAX_TIMEOUT_MS": "900000"
}
}


Also I created a global `~/.claude/settings.json` file with the same content. Still I am getting the error..

Moreover using the `claude config list -g` command shows me a set of completely different settings and variables, such as:
```json{
  "autoUpdaterStatus": "not_configured",
  "theme": "dark",
  "verbose": "true",
  "preferredNotifChannel": "auto",
  "editorMode": "normal",
  "autoCompactEnabled": false,
  "diffTool": "auto",
  "env": {},
  "tipsHistory": {
    "new-user-warmup": 1,
    "memory-command": 7,
    "theme-command": 8,
    "prompt-queue": 9,
    "enter-to-steer-in-relatime": 10,
    "todo-list": 11,
    "# for memory": 12,
    "install-github-app": 13,
    "permissions": 14,
    "drag-and-drop-images": 15,
    "double-esc": 16,
    "continue": 17,
    "custom-commands": 18,
    "shift-tab": 19
  },
  "parallelTasksCount": 1,
  "todoFeatureEnabled": true,
  "messageIdleNotifThresholdMs": 60000
}

Here we see that no env variables got defined apparently. However, there is another variable "messageIdleNotifThresholdMs": 60000 that might be related to the topic, but has a one minute value and there is probably not relevant.

Steps to Reproduce

  1. Define a requirements.txt file with dependencies that require a lot of time to install or another bash command that takes a couple of minutes to execute. See mine as reference:
fastapi==0.104.1
uvicorn[standard]==0.24.0
sqlalchemy==2.0.23
alembic==1.12.1
celery==5.3.4
redis==5.0.1
google-auth==2.23.4
google-auth-oauthlib==1.1.0
google-auth-httplib2==0.1.1
google-api-python-client==2.108.0
google-cloud-texttospeech==2.14.2
requests==2.31.0
pydantic==2.5.0
pydantic-settings==2.1.0
python-multipart==0.0.6
python-jose[cryptography]==3.3.0
passlib[bcrypt]==1.7.4
python-dotenv==1.0.0

# Development dependencies
pytest==7.4.3
pytest-asyncio==0.21.1
black==23.11.0
flake8==6.1.0
httpx==0.25.2
  1. Let claude run that bash command

Expected Behavior

I'd expect that the definition of these environmental variables as shown above would increase the timeout time. 2 minutes is too little for more complex operations.

Actual Behavior

The setup of the environmental variables does not have any effect.

View original on GitHub ↗

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