Skip to content

[pull] main from microsoft:main#1318

Merged
pull[bot] merged 5 commits into
code:mainfrom
microsoft:main
May 31, 2026
Merged

[pull] main from microsoft:main#1318
pull[bot] merged 5 commits into
code:mainfrom
microsoft:main

Conversation

@pull
Copy link
Copy Markdown

@pull pull Bot commented May 31, 2026

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 : )

vijayupadya and others added 5 commits May 31, 2026 11:11
…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
@pull pull Bot locked and limited conversation to collaborators May 31, 2026
@pull pull Bot added the ⤵️ pull label May 31, 2026
@pull pull Bot merged commit 0ca79e5 into code:main May 31, 2026
7 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants