Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Dec 5, 2025

When chat.checkpoints.showFileChanges is enabled, the checkpoint file changes summary was displayed for background (non-local) sessions. Background sessions already register their own file changes part, causing duplicate UI elements.

image

Changes

  • Modified shouldShowFileChangesSummary in chatListRenderer.ts to check session type before rendering
  • Only local sessions (localChatSessionType) now show the checkpoint file changes part
private shouldShowFileChangesSummary(element: IChatResponseViewModel): boolean {
    const isLocalSession = getChatSessionType(element.sessionResource) === localChatSessionType;
    return element.isComplete && isLocalSession && this.configService.getValue<boolean>('chat.checkpoints.showFileChanges');
}
Original prompt

This section details on the original issue you should resolve

<issue_title>Duplicated file changes part for background session when chat.checkpoints.showFileChanges is turned on</issue_title>
<issue_description>

Does this issue occur when all extensions are disabled?: Yes/No

When we turn on chat.checkpoints.showFileChanges, it shows up in background session as well. However background session already registers its own file changes part

Image

@osortega I think we should hide this for non-local sessions even if it's turned on. From what I see, chat.checkpoints.showFileChanges part is not working properly for background session.</issue_description>

Comments on the Issue (you are @copilot in this section)


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI changed the title [WIP] Fix duplicated file changes for background session Fix duplicated file changes part for background sessions Dec 5, 2025
Copilot AI requested a review from osortega December 5, 2025 23:28
@osortega osortega changed the base branch from main to 1.107/sessions December 6, 2025 00:08
@osortega osortega changed the base branch from 1.107/sessions to main December 6, 2025 00:08
Copilot AI and others added 2 commits December 5, 2025 16:10
When chat.checkpoints.showFileChanges is enabled, only show
file changes summary for local sessions since background sessions
already have their own file changes part registered.

Co-authored-by: osortega <[email protected]>
@osortega osortega force-pushed the copilot/fix-duplicated-file-changes branch from d3216dd to c28da72 Compare December 6, 2025 00:11
@osortega osortega changed the base branch from main to 1.107/sessions December 6, 2025 00:11
@osortega osortega marked this pull request as ready for review December 6, 2025 00:12
@vs-code-engineering
Copy link

vs-code-engineering bot commented Dec 6, 2025

📬 CODENOTIFY

The following users are being notified based on files changed in this PR:

@roblourens

Matched files:

  • src/vs/workbench/contrib/chat/browser/chatListRenderer.ts

@osortega osortega enabled auto-merge (squash) December 9, 2025 01:04
@osortega osortega merged commit c696af0 into 1.107/sessions Dec 9, 2025
28 checks passed
@osortega osortega deleted the copilot/fix-duplicated-file-changes branch December 9, 2025 01:28

private shouldShowFileChangesSummary(element: IChatResponseViewModel): boolean {
return element.isComplete && this.configService.getValue<boolean>('chat.checkpoints.showFileChanges');
// Only show file changes summary for local sessions - background sessions already have their own file changes part
Copy link
Member

Choose a reason for hiding this comment

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

background sessions already have their own file changes part

How does that work? How can we get rid of these special cases?

bpasero pushed a commit that referenced this pull request Dec 9, 2025
* Initial plan

* Fix duplicated file changes for background sessions

When chat.checkpoints.showFileChanges is enabled, only show
file changes summary for local sessions since background sessions
already have their own file changes part registered.

Co-authored-by: osortega <[email protected]>

---------

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: osortega <[email protected]>
Co-authored-by: Peng Lyu <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Duplicated file changes part for background session when chat.checkpoints.showFileChanges is turned on

4 participants