Skip to content

Disable walkthrough if ai features disabled on startup#318364

Merged
cwebster-99 merged 3 commits into
mainfrom
occupational-crocodile
May 26, 2026
Merged

Disable walkthrough if ai features disabled on startup#318364
cwebster-99 merged 3 commits into
mainfrom
occupational-crocodile

Conversation

@cwebster-99
Copy link
Copy Markdown
Member

@cwebster-99 cwebster-99 commented May 26, 2026

This pull request introduces logic to ensure that AI-focused onboarding and UI elements are only shown to users when AI features are enabled and visible. The changes primarily impact the onboarding experience for new users and the display of the auxiliary bar in empty workspaces.

Key changes:

Onboarding and Welcome Experience:

  • The onboarding flow now checks if AI features are hidden (using chatEntitlementService.sentiment.hidden) and skips AI-focused onboarding for users where AI features are not available or visible.
  • The StartupPageRunnerContribution class now injects the IChatEntitlementService dependency to access AI feature visibility.
  • The IChatEntitlementService import was added to support the above logic.

Auxiliary Bar Visibility:

  • The logic for showing the auxiliary bar to new users in empty workspaces now also checks if AI features are disabled via the chat.disableAIFeatures configuration, and hides the bar if so.

LayoutStateModel.load() runs during early layout initialization — before any WorkbenchPhase. The ChatEntitlementContext (which sets the chatSetupHidden context key from chat.disableAIFeatures) is lazily created inside ChatEntitlementService and won't be resolved yet. So sentiment.hidden would always return false at that point, defeating the guard.

Copilot AI review requested due to automatic review settings May 26, 2026 15:21
@cwebster-99 cwebster-99 linked an issue May 26, 2026 that may be closed by this pull request
Copy link
Copy Markdown
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 ensures AI-specific onboarding and default layout behavior respect the chat.disableAIFeatures setting at startup, so new users don’t see AI-focused UI when AI features are disabled.

Changes:

  • Skip showing the experimental onboarding overlay for new users when chat.disableAIFeatures is enabled.
  • Adjust the auxiliary bar default visibility so it is not forced open for new users when AI features are disabled.
Show a summary per file
File Description
src/vs/workbench/contrib/welcomeGettingStarted/browser/startupPage.ts Gates the experimental onboarding overlay on chat.disableAIFeatures.
src/vs/workbench/browser/layout.ts Prevents forcing auxiliary bar visibility for new users when AI features are disabled.

Copilot's findings

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

Copy link
Copy Markdown
Collaborator

@rzhao271 rzhao271 left a comment

Choose a reason for hiding this comment

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

rzhao271
rzhao271 previously approved these changes May 26, 2026
@cwebster-99 cwebster-99 enabled auto-merge May 26, 2026 16:38
Comment thread src/vs/workbench/browser/layout.ts
@cwebster-99 cwebster-99 disabled auto-merge May 26, 2026 16:49
@cwebster-99 cwebster-99 added the ~release-cherry-pick Trigger: cherry-pick this PR to the latest release branch label May 26, 2026
@vs-code-engineering
Copy link
Copy Markdown
Contributor

This PR will be automatically cherry-picked to release/1.122 when merged.

@cwebster-99 cwebster-99 merged commit c2895b5 into main May 26, 2026
25 checks passed
@cwebster-99 cwebster-99 deleted the occupational-crocodile branch May 26, 2026 17:47
@vs-code-engineering vs-code-engineering Bot added this to the 1.122.0 milestone May 26, 2026
@vs-code-engineering vs-code-engineering Bot added release-cherry-pick Automated cherry-pick between release and main branches and removed ~release-cherry-pick Trigger: cherry-pick this PR to the latest release branch labels May 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release-cherry-pick Automated cherry-pick between release and main branches

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unable to deactivate AI-Onboarding in first VSC Launch

4 participants