Context low loop with parallel sub-agents blocks /compact and /feedback

Status Fixed / completed
Maintainer reply None cached
Activity 6 comments · opened Jan 6, 2026 · closed Jan 10, 2026

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:

  1. /compact doesn't work in this state
  2. /feedback also 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

  1. Start a session that spawns multiple parallel sub-agents using the Task tool
  2. Let agents run until context gets low
  3. Observe repeated "Context low · Run /compact to compact & continue" messages after each TaskOutput
  4. Try running /compact - doesn't work
  5. 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

  • /compact should work even when multiple agents are completing
  • /feedback should 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

View original on GitHub ↗

6 Comments

github-actions[bot] · 9 months ago

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/2038
  2. https://github.com/anthropics/claude-code/issues/12517
  3. https://github.com/anthropics/claude-code/issues/16209

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

itsgaldoron · 9 months ago

Same!

mferraznw · 9 months ago

yup, having this problem too, even changed to native install, still same thing

ThatDragonOverThere · 9 months ago

Additional reproduction case

Same issue occurred again - "Context low · Run /compact to compact & continue" appears repeatedly after background task completion:

● Task Output(non-blocking) b67d801
  ⎿  2026-01-10 06:45:10 | INFO    | V11 derived features module loaded successfully
     ... +3045 lines (ctrl+o to expand)
  ⎿  Context low · Run /compact to compact & continue

● Background command "Run Agent R QQQ FRESH (all 422 dates)" completed (exit code 0).
  ⎿  Context low · Run /compact to compact & continue

This time it was a background bash command (not parallel sub-agents), but same behavior:

  • Multiple tool outputs each showing "Context low" message
  • /compact doesn't resolve it
  • Session becomes stuck

The pattern seems to be: any situation where multiple tool results come in sequence triggers this spam.

ThatDragonOverThere · 9 months ago

Closing as duplicate of #2038

github-actions[bot] · 8 months ago

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.