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 3ee042d
Browse filesBrowse the repository at this point in the historyBrowse files
fix(condense): summarize only the API-visible history (#2300)
* fix(condense): summarize only the API-visible history
Condense selected messages from the raw stored history. Sliding window
truncation and a prior condense hide messages from normal API requests.
The old selection brought those hidden messages back into the
summarization request. The request then grew past the model context
window, and condense failed with a context size error.
summarizeConversation now selects getMessagesSinceLastSummary(
getEffectiveApiHistory(messages)). This matches what Task.ts sends for
normal requests. The full stored history stays intact, so a rewind can
still restore hidden messages.
Add a regression test. It asserts the exact request content and the
preserved stored history.
Fixes#1342
* test(condense): cover prior summary and stored hidden messages
0 commit comments