Repository navigation
sessions list: fix: reset recycled section icon colors - #350598
Open
Ulugbek Abdullaev (ulugbekna) wants to merge 2 commits into
Open
Ulugbek Abdullaev (ulugbekna) wants to merge 2 commits into
Ulugbek Abdullaev (ulugbekna) wants to merge 2 commits into
Conversation
Clear the previous section's inline icon color before rendering a recycled row so pinned canvases and idle Automations do not inherit Customizations badge styling. Preserve colors assigned by the current section renderer and cover both rendering paths. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Merge current main and keep its SessionsList renderer extraction and Canvases folding changes. Move the recycled icon color reset to SessionSectionRenderer in sessionsListRenderers.ts; retain the focused regression test. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues remain for the change addressing stale sidebar icon colors.
No open issues 🎉
What changed in this PR
Fixes stale icon colors in the Agents window’s Sessions sidebar when recycled Customizations rows become pinned canvases or idle Automations entries.
Changes:
- Clears the previous section’s inline icon color before rendering the new section.
- Adds regression coverage for tree and shortcut rendering paths, including canvas availability changes and preservation of intentional Customizations badge colors.
No actionable findings remain. The PR reports passing targeted tests; post-merge type checking was blocked by dependency issues, and live UI verification was not repeated.
| File | Description |
|---|---|
src/vs/workbench/contrib/sessions/browser/views/sessionsListRenderers.ts |
Resets icon color when a section template is rebound. |
src/vs/sessions/contrib/sessions/test/browser/sessionsList.test.ts |
Tests recycled icon colors and badge restoration through both rendering paths. |
Review effort: Balanced
Alexandru Dima (alexdima)
approved these changes
Nov 26, 2026
This branch has not been deployed
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.
Why
Recycled sidebar rows can retain Customizations' blue badge color when rebound to an inactive pinned canvas or idle Automations entry.
What changed
Scope
Merged current main at
9ffac133344. Preserve its renderer extraction and Canvases folding/hover changes from #350586; the reset now lives insessionsListRenderers.ts. The PR's delta remains one production line and its regression test, with no folding, hover, CSS, or provider behavior changes.Verification
After merging main, using Node 24.22.3:
pnpm run transpile-client— passed.VSCODE_SKIP_PRELAUNCH=1 ./scripts/test.sh --run src/vs/sessions/contrib/sessions/test/electron-browser/sessionsListFocusRing.test.ts --run src/vs/sessions/contrib/sessions/test/browser/sessionsList.test.ts --grep 'focused row styles|SessionSectionRenderer|[Cc]anvas' --reporter dot— 36 passed, including Canvases folding/focus coverage, using the available Electron 43.8.10 rather than main's requested 43.8.13.pnpm run oxlint src/vs/workbench/contrib/sessions/browser/views/sessionsListRenderers.ts src/vs/sessions/contrib/sessions/test/browser/sessionsList.test.ts— passed.git diff --cached --check origin/main— passed before committing the resolution.pnpm install— blocked by a dependency-feed 404; retrying with--frozen-lockfile --registry=https://registry.npmjs.orgfailed because the public registry was unreachable. No dependency manifests or registry configuration were changed by the repair.pnpm run build-fast --client-onlyandpnpm run typecheck-client— blocked by the outdated installed Copilot SDK after the failed dependency refresh. Both passed on the original pre-merge change.