claude-code
claude-code copied to clipboard
Context low loop with parallel sub-agents blocks /compact and /feedback
Bug Description
When running multiple parallel sub-agents (Task tool), Claude Code repeatedly shows "Context low · Run /compact to compact & continue" after each agent completes, but:
-
/compactdoesn't work in this state -
/feedbackalso fails with "Error submitting feedback / bug report"
This creates an unrecoverable loop where you can't fix the context issue and can't report the bug.
Steps to Reproduce
- Start a session that spawns multiple parallel sub-agents using the Task tool
- Let agents run until context gets low
- Observe repeated "Context low · Run /compact to compact & continue" messages after each TaskOutput
- Try running
/compact- doesn't work - Try running
/feedback- fails with error
Example Output
● Task 5.1 is still running. Let me check the remaining agents and then collect all results:
● Task Output af8f1e0
⎿ Read output (ctrl+o to expand)
● Task Output a8961aa
⎿ Read output (ctrl+o to expand)
● Task Output a082425
⎿ Read output (ctrl+o to expand)
● Task Output a307588
⎿ Read output (ctrl+o to expand)
⎿ Context low · Run /compact to compact & continue
● Agent "Task 5.1: Entry vs Regime Matrix" completed.
⎿ Context low · Run /compact to compact & continue
> /feedback
⎿ Error submitting feedback / bug report
Expected Behavior
-
/compactshould work even when multiple agents are completing -
/feedbackshould work regardless of context state - The "Context low" message shouldn't spam after every single tool output
Environment
- OS: Windows 11 (MSYS/Git Bash)
- Claude Code CLI