Skip to content

Fix hiding Update UI during active chat sessions - #322857

Merged
dmitrivMS merged 1 commit into
mainfrom
dev/dmitriv/update-hide-button-during-chat
Jun 25, 2026
Merged

Fix hiding Update UI during active chat sessions#322857
dmitrivMS merged 1 commit into
mainfrom
dev/dmitriv/update-hide-button-during-chat

Conversation

@dmitrivMS

Copy link
Copy Markdown
Contributor

Fixes #312330

Before this change Update button would be hidden if update state changed during an active chat session, but it would not hide again if a new chat is started after Update button is shown.

Now Update button will hide during active chat sessions (similar to how it works with debug sessions already).

Co-authored-by: Copilot <copilot@github.com>
Copilot AI review requested due to automatic review settings June 25, 2026 00:46
@dmitrivMS
dmitrivMS enabled auto-merge (squash) June 25, 2026 00:46
@dmitrivMS dmitrivMS self-assigned this Jun 25, 2026
@dmitrivMS dmitrivMS added the install-update VS Code installation and upgrade system issues label Jun 25, 2026

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 updates the workbench update-title-bar contribution so the Update title bar indicator is suppressed whenever a chat request is in progress, preventing the indicator from remaining visible after chat activity begins (aligning the behavior with other “hide during activity” cases like debug mode).

Changes:

  • Introduces a dedicated context key (updateTitleBarChatRequestInProgress) that tracks IChatService.requestInProgressObs via autorun.
  • Updates menu when clauses to require no chat request in progress before rendering the update title bar action (including any additional registered placement).
  • Simplifies actionable-state handling by no longer delaying updateTitleBar context changes until chat becomes idle.
Show a summary per file
File Description
src/vs/workbench/contrib/update/browser/updateTitleBarEntry.ts Adds a chat-in-progress context key and uses it in when clauses so the Update title bar UI hides during in-flight chat requests.

Copilot's findings

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

@dmitrivMS
dmitrivMS merged commit 1073827 into main Jun 25, 2026
29 checks passed
@dmitrivMS
dmitrivMS deleted the dev/dmitriv/update-hide-button-during-chat branch June 25, 2026 01:00
@vs-code-engineering vs-code-engineering Bot added this to the 1.127.0 milestone Jun 25, 2026
@jruales jruales added the verified Verification succeeded label Jun 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

install-update VS Code installation and upgrade system issues verified Verification succeeded

Projects

None yet

4 participants