You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
MCP Server tool call output is not tracking properly with context management system (unexpected overflow) #5544
The context window management does not seem to track tool output when using MCP Server provided tools. You can run out of context in an interactive session and get yourself into an unrecoverable state because it appears that the MCP tool output is not being tracked by the context management system today.
What steps can reproduce the bug?
Be in interactive mode
Run any MCP Tool call that produces a large amount of output.
Observe that the "% context left" does not reflect the actual context window produced by the tool calls
What is the expected behavior?
Context is tracked accordingly even with MCP Server tool calls.
Activity
github-actions commentedon Oct 22, 2025
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
gpeal commentedon Nov 4, 2025
Fixed by #5979