Skip to content

add exp prop for chat.automations.enabled#324479

Merged
Giuspepe merged 1 commit into
mainfrom
agents/add-chat-automations-experiment-setting
Jul 6, 2026
Merged

add exp prop for chat.automations.enabled#324479
Giuspepe merged 1 commit into
mainfrom
agents/add-chat-automations-experiment-setting

Conversation

@Giuspepe

@Giuspepe Giuspepe commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings July 6, 2026 10:32
@Giuspepe Giuspepe enabled auto-merge July 6, 2026 10:32

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 opts the experimental chat.automations.enabled setting into VS Code's experiment system by adding experiment: { mode: 'auto' }. This allows the setting's default value to be controlled/overridden by an experiment, enabling gradual rollout of the Automations feature (scheduling agent sessions to run on a cadence) without shipping a code change. With auto mode, the setting value updates whenever the experiment value changes, and the existing configuration-change listener (ChatAutomationsEnabledContextContribution) will re-sync the ChatAutomationsEnabledContext context key accordingly.

Changes:

  • Added experiment: { mode: 'auto' } to the chat.automations.enabled configuration property.
Show a summary per file
File Description
src/vs/sessions/contrib/automations/browser/automations.contribution.ts Adds an experiment override so the setting default can be driven by an experiment (auto mode).

I verified that:

  • The experiment property with mode: 'auto' is valid per the schema in configurationRegistry.ts:242-254.
  • This matches established usage elsewhere (e.g., sessions.contribution.ts:67, update.config.contribution.ts:85, editorConfigurationSchema.ts:77).
  • The existing context-key mirror listens to onDidChangeConfiguration, so auto mode updates will propagate correctly.

No issues found.

Review details

  • Files reviewed: 1/1 changed files
  • Comments generated: 0
  • Review effort level: Medium

@Giuspepe Giuspepe merged commit 7d68636 into main Jul 6, 2026
30 checks passed
@Giuspepe Giuspepe deleted the agents/add-chat-automations-experiment-setting branch July 6, 2026 10:53
@vs-code-engineering vs-code-engineering Bot added this to the 1.129.0 milestone Jul 6, 2026
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.

3 participants