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
Compaction Fails with APIContextOverflow due to sending the wrong context length #476
The token_size bug where it is not propagating the context_size correctly from #306 still exists during compaction
Error: compaction.failed APIContextOverflowError: 400 This endpoint's maximum context length is 262144 tokens. However, you requested about 264896 tokens (52139 of text input, 12757 of tool input, 200000 in the output). Please reduce the length of either one.
It shouldn't be sending the max_context_size for the max_output_size when doing /compaction, it works normally for regular input, but crashes as soon as it tries to issue a /compaction command
Activity
qkunio commentedon Jun 5, 2026
great, I met the same question.
leonardobrunelli-OX commentedon Jun 5, 2026
Error: [compaction.failed] APIStatusError: 400 total message size 10176584 exceeds limit 2097152
same here
voku682 commentedon Jun 21, 2026
@frosty00 can you tell how you are using openrouter in Kimi code ? the "/providers" doesn't lists openrouter as one of the providers