API Error 400 - Frequent tool use concurrency issues with Remote SSH
Status Fixed / completed
Reported on v2.1.19
Maintainer reply None cached
Workaround ✓ Mentioned in thread ↓
Activity 4 comments · opened Jan 26, 2026 · closed Jan 26, 2026
Problem
Experiencing frequent API errors during active sessions:
API Error: 400 due to tool use concurrency issues
Symptoms
- Error occurs every 10-30 seconds during typical workflows
- Completely blocks execution
- Requires manually typing "continue" to resume
- Can happen 20-30+ times in a single session
- Severely impacts usability for multi-step tasks
Environment
- VS Code: 1.108.2
- OS: Ubuntu 24.04.3 LTS
- Claude Code Extension: anthropic.claude-code@2.1.19
- Connection Type: Remote SSH to Ubuntu server
- Workflow: Multi-step operations (file operations, commands, searches)
Root Cause Observation
The extension appears to make parallel tool calls for efficiency:
<function_calls>
<invoke name="Tool1">...</invoke>
<invoke name="Tool2">...</invoke>
<invoke name="Tool3">...</invoke>
</function_calls>
When multiple tools execute simultaneously (especially over Remote SSH), API returns 400 concurrency errors.
When It Occurs
Most commonly during:
- Multiple file read/write operations
- Sequential command executions
- Parallel data gathering operations
- Any workflow requiring 3+ tool invocations
Impact on User Experience
- Productivity: Sessions requiring 30 minutes can extend to hours
- Interruption: Constant manual intervention breaks flow
- Frustration: Makes complex multi-step tasks nearly unusable
Workaround
Instructing Claude at session start to use sequential calls:
Use sequential tool calls only. Make ONE tool call per message to avoid API 400 errors.
Result: Zero 400 errors but ~20-30% slower execution.
Analysis
Current Behavior (Parallel Calls):
- ✅ Optimized for speed
- ❌ Frequently fails with 400 errors
- ❌ Poor user experience
Workaround (Sequential Calls):
- ✅ 100% reliable
- ✅ Predictable progress
- ❌ Slower performance
- ✅ Much better overall UX
Suggestion
Consider:
- Making sequential calls the default (or user-configurable)
- Implementing better error recovery for 400 concurrency errors
- Rate limiting or queuing parallel tool calls to prevent API overwhelm
- Providing user control over concurrency level
The parallel optimization appears to cause more problems than it solves in Remote SSH scenarios.
Expected Behavior
Tool calls should execute reliably without frequent API errors, even if slightly slower.
Actual Behavior
Parallel tool calls trigger frequent 400 errors requiring manual recovery.
4 Comments
Hello I have Max account and I have same issue but is every simple task like respond hello.. it show same message
Please help me!
Found 3 possible duplicate issues:
This issue will be automatically closed as a duplicate in 3 days.
🤖 Generated with Claude Code
Closing as duplicate of #20555, #20678, #20888, #21063 and others. This appears to be a widespread issue affecting many users since Jan 25-26, 2026.
My environment: Ubuntu 24.04.3 LTS, VS Code 1.108.2, claude-code@2.1.19, Remote SSH.
Note: The suggested workaround (sequential tool calls) may not fully resolve the issue.
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.