[pull] main from microsoft:main#1318
Merged
Merged
Conversation
…319220) chat.advanced.summarizeAgentConversationHistoryThreshold now accepts either a ratio of the model's context window (0 < value <= 1, e.g. 0.8 for 80%) or an absolute token count (value >= 100). A new resolveSummarizeThresholdTokens() helper resolves the value; ratios track model/context-size changes automatically. Values in the ambiguous (1, 100) gap are rejected so a typo like 80 (meant as 80%) fails loudly instead of compacting after 80 tokens.
* Honor /compact summary when auto-summarization is disabled Fixes #311503. With chat.summarizeAgentConversationHistory.enabled=false the agent renders history via AgentConversationHistory, which replayed every turn's full tool-call history and ignored round.summary. After a manual /compact, the next turn rebuilt the entire pre-compaction context and the context window immediately refilled. AgentConversationHistory now finds the most recent summarized round (populated by normalizeSummariesOnRounds), drops the history it supersedes, emits the <conversation-summary> tag in place of that turn's user message, and replays only the rounds after the summary. This applies an existing summary but never triggers new summarization, which stays gated behind the setting. The no-summary path is unchanged. * Read summary rounds from a single source for index consistency
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
See Commits and Changes for more details.
Created by
pull[bot] (v2.0.0-alpha.4)
Can you help keep this open source service alive? 💖 Please sponsor : )