Skip to content

Agents - show persistent state when switching between sessions - #321140

Merged
Ladislau Szomoru (lszomoru) merged 3 commits into
mainfrom
lszomoru/junior-firefly
Jun 12, 2026
Merged

Ladislau Szomoru (lszomoru) merged 3 commits into
mainfrom
lszomoru/junior-firefly

Conversation

@lszomoru

Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings June 12, 2026 13:09
@lszomoru
Ladislau Szomoru (lszomoru) enabled auto-merge (squash) June 12, 2026 13:09

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adjusts how the Agents window’s Agent Host changeset UI derives its loading state and displayed file changes so that previously-known (persisted/cached) file lists can remain visible when switching between sessions.

Changes:

  • Refines isLoadingChanges so the UI can avoid showing a loading state when cached changeset files are already available.
  • Updates the changes observable to keep rendering the last known file list while a changeset recomputes / before the “Ready” state arrives.
Show a summary per file
File Description
src/vs/sessions/contrib/providers/agentHost/browser/agentHostSessionChangesets.ts Tweaks changeset loading + file-list derivation logic to preserve and render cached/persisted state across session switches.

Copilot's findings

  • Files reviewed: 1/1 changed files
  • Comments generated: 2

Co-authored-by: Copilot Autofix powered by AI <[email protected]>
@lszomoru
Ladislau Szomoru (lszomoru) merged commit 22139e9 into main Jun 12, 2026
39 of 40 checks passed
@lszomoru
Ladislau Szomoru (lszomoru) deleted the lszomoru/junior-firefly branch June 12, 2026 14:19
@vs-code-engineering vs-code-engineering Bot added this to the 1.125.0 milestone Jun 12, 2026
Dmitriy Vasyura (dmitrivMS) pushed a commit that referenced this pull request Jun 12, 2026
* fix: default text-file icon shown for Images Preview editor

* fix: wording

* Agents - show persistent state when switching between sessions (#321140)

---------

Co-authored-by: Ladislau Szomoru <[email protected]>
@vs-code-engineering vs-code-engineering Bot locked and limited conversation to collaborators Jul 27, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants