Skip to content

docs: Add agent hang and infinite loop troubleshooting guide#30018

Open
HarshalJain-cs wants to merge 2 commits intoanthropics:mainfrom
HarshalJain-cs:docs/agent-hang-troubleshooting-guide
Open

docs: Add agent hang and infinite loop troubleshooting guide#30018
HarshalJain-cs wants to merge 2 commits intoanthropics:mainfrom
HarshalJain-cs:docs/agent-hang-troubleshooting-guide

Conversation

@HarshalJain-cs
Copy link

Summary

Adds a comprehensive troubleshooting guide for agent hangs and infinite loops in Claude Code.

Problem

Users are experiencing agent hangs and infinite retry loops (issue #30014), particularly related to MaxFileReadTokenExceededError causing silent retry loops that consume tokens without user notification.

Changes

Related Issues

Fixes #30014 (Explore agent gets stuck in infinite retry loop)
Related to #16752, #4744

Added a comprehensive troubleshooting guide for agent hangs and infinite loops, detailing causes, error messages, prevention strategies, and recovery steps.
Addresses the follow-up question from issue anthropics#30014 (jurmadani) about being stuck with very low token consumption. Adds: - Hang Scenario 2: Stuck at Low Tokens (Secondary Hang) with full step-by-step fix - Hang Scenario 3: Keyboard Input Frozen (Ghostty-specific note) - Root Cause Fix 4: Secondary hang detection recommendation - Quick Reference table for identifying which scenario you're in Also restructures the guide around 3 distinct hang scenarios with clear symptom/cause/fix for each.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Explore agent infinite loop or hang condition

1 participant