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
Commit 19302b1
Browse filesBrowse the repository at this point in the historyBrowse files
fix(session): detect near-maxOutputTokens truncation and override finishReason to length (anomalyco#18108)
When outputTokens >= 95% of maxOutputTokens with finishReason 'tool-calls',
override to 'length' so the existing lengthCount auto-continue logic triggers.
Also warn on write tool output when content exceeds 50K chars.
output+=`\n\n⚠️ Warning: This file is very large (${params.content.length} chars). If it appears truncated, the model output may have hit token limits. Consider writing in smaller chunks.`
0 commit comments