Skip to content

fix(agent): correct soft-trim head/tail budget allocation when tail is important#723

Open
SummitXY wants to merge 1 commit intonextlevelbuilder:devfrom
SummitXY:fix/agent-softtrim-head-tail-reversed
Open

fix(agent): correct soft-trim head/tail budget allocation when tail is important#723
SummitXY wants to merge 1 commit intonextlevelbuilder:devfrom
SummitXY:fix/agent-softtrim-head-tail-reversed

Conversation

@SummitXY
Copy link
Copy Markdown

@SummitXY SummitXY commented Apr 6, 2026

Summary

When hasImportantTail is true, 70% of the character budget should be
allocated to the tail, not the head. The previous code had the
assignment reversed, causing tail content to be over-truncated in
exactly the cases where it matters most.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants