Skip to content

feat: add setting to control throttling for chat sessions#280591

Merged
deepak1556 merged 2 commits intomainfrom
robo/chat_throttling_setting
Dec 2, 2025
Merged

feat: add setting to control throttling for chat sessions#280591
deepak1556 merged 2 commits intomainfrom
robo/chat_throttling_setting

Conversation

@deepak1556
Copy link
Collaborator

@deepak1556 deepak1556 commented Dec 2, 2025

For #263554

Based on some trace logs from @chrmarti who is occasionally affected by this issue, we are changing the background throttling of the affected windows but I am not sure why that would break compositing even after we restored the original throttling state when the chat requests ended. I will use this setting as a first step to either confirm or eliminate the chat customization as a source of the issue and then proceed to get additional diagnostics from the runtime.

@deepak1556 deepak1556 added this to the November 2025 milestone Dec 2, 2025
@deepak1556 deepak1556 requested a review from bpasero December 2, 2025 13:41
@deepak1556 deepak1556 self-assigned this Dec 2, 2025
Copilot AI review requested due to automatic review settings December 2, 2025 13:41
Copy link
Contributor

Copilot AI left a comment

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 adds a new configuration setting chat.suspendThrottling to control whether background throttling is suspended during chat requests. The feature is being introduced as a diagnostic tool to investigate issue #263554 where background throttling changes may be affecting compositing behavior.

Key changes:

  • New configuration enum value SuspendThrottling added to ChatConfiguration
  • Configuration setting registered with default value true to maintain current behavior
  • Handler implementation updated to check the setting before suspending throttling

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
src/vs/workbench/contrib/chat/common/constants.ts Added SuspendThrottling enum value to ChatConfiguration
src/vs/workbench/contrib/chat/browser/chat.contribution.ts Registered the new boolean configuration setting with localized description
src/vs/workbench/contrib/chat/electron-browser/chat.contribution.ts Updated ChatSuspendThrottlingHandler to respect the new setting, added IConfigurationService dependency, and consolidated imports

You can also share your feedback on Copilot code review for a chance to win a $100 gift card. Take the survey.

chrmarti
chrmarti previously approved these changes Dec 2, 2025
@deepak1556 deepak1556 requested a review from bpasero December 2, 2025 14:48
@deepak1556 deepak1556 enabled auto-merge (squash) December 2, 2025 15:05
@deepak1556 deepak1556 merged commit 5efc1d0 into main Dec 2, 2025
29 checks passed
@deepak1556 deepak1556 deleted the robo/chat_throttling_setting branch December 2, 2025 15:09
deepak1556 added a commit that referenced this pull request Jan 15, 2026
deepak1556 added a commit that referenced this pull request Jan 16, 2026
* fix: disable skia graphite backend

Refs https://gist.github.com/deepak1556/434964e5e379339be1d02db2a9afb743

* chore: rm enable-graphite-invalid-recording-recovery switch

* Revert "feat: add setting to control throttling for chat sessions (#280591)"

This reverts commit 5efc1d0.
@vs-code-engineering vs-code-engineering bot locked and limited conversation to collaborators Jan 16, 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