Repository navigation
Agents - Fix session diff statistics for inactive folder sessions - #342099
Merged
Ladislau Szomoru (lszomoru) merged 1 commit intoOct 16, 2026
Merged
Ladislau Szomoru (lszomoru) merged 1 commit into
Ladislau Szomoru (lszomoru) merged 1 commit into
Conversation
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
The narrow fix has focused regression coverage and no identified actionable defects; tests were not executed during this review.
0 open findings
What changed in this PR
Fixes inactive folder-session diff statistics by preserving reported zero summaries instead of treating them as missing.
Changes:
- Normalizes summaries before comparison, distinguishing zero from unset values.
- Adds regression coverage for zero summaries received through session listing and notifications.
| File | Description |
|---|---|
| src/vs/sessions/contrib/providers/agentHost/test/browser/localAgentHostSessionsProvider.test.ts | Tests zero-summary retention and statistics lookup. |
| src/vs/sessions/contrib/providers/agentHost/browser/baseAgentHostSessionsProvider.ts | Stores authoritative zero summaries to prevent fallback. |
🧠 Review effort: Balanced
💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Contributor
Federico Brancasi (federicobrancasi)
approved these changes
Oct 16, 2026
Ladislau Szomoru (lszomoru)
enabled auto-merge (squash)
October 16, 2026 16:20
Ladislau Szomoru (lszomoru)
deleted the
lszomoru/agents/fix-session-diff-statistics-regression
branch
October 16, 2026 18:25
Henning Dieterichs (hediet)
added a commit
that referenced
this pull request
Oct 26, 2026
…342131) The Session Activity Bar `SubmenuOpen` fixture produces flaky screenshot comparisons. Mark it as `animated` across all themes so it stays available in Component Explorer but is excluded from automated screenshot capture. The same `sessions/sessionActivityBar/sessionActivityBar/SubmenuOpen/Light` image pair appears in these screenshot reports: - [#342109 — Honor side placement for agent-session links in editor windows](#342109 (comment)) - [#342081 — Support opening links directly from Quick Open](#342081 (comment)) - [#342099 — Fix session diff statistics for inactive folder sessions](#342099 (comment)), with the before/after images reversed. - [#342079 — Update distro for Copilot BYOK voice speech proposal](#342079 (comment)) Validation: editor diagnostics and `git diff --check` passed. No runtime tests were run for this metadata-only change. Fixes #342130
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This pull request addresses a regression where the diff statistics for folder sessions were only displayed while the session was active. The issue arose because the client was not storing a zero summary for inactive sessions, leading to a fallback on branch changes that only loaded when the session was active.
Changes made:
setChangesSummarymethod to properly handle zero summaries by normalizing incoming summaries and ensuring that a reported zero replaces an unset summary.Key points: