[Bug] Plan mode subagents report context limit exceeded on first prompt from main agent

Resolved 💬 3 comments Opened Apr 29, 2026 by guneysol Closed May 3, 2026

Bug Description

Plan mode appears to be hitting the context limit immediately when the main agent delegates tasks to subagents. Each subagent returns a Context limit reached · /compact or /clear to continue error on the first prompt, before doing any work.

This happens immediately on the first prompt, so it seems like the subagents are starting with an already-full context or inheriting too much context from the main agent.

Environment Info

  • Platform: darwin
  • Terminal: VS Code
  • Version: 2.1.123
  • Feedback ID: 31334783-b33a-4d83-b11f-934e6c6dd9cb

View original on GitHub ↗

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