Skip to content

Chat: improve welcome for no-auth flow (fix microsoft/vscode-internalbacklog#5872)#268607

Merged
bpasero merged 1 commit intomainfrom
ben/detailed-vole
Sep 27, 2025
Merged

Chat: improve welcome for no-auth flow (fix microsoft/vscode-internalbacklog#5872)#268607
bpasero merged 1 commit intomainfrom
ben/detailed-vole

Conversation

@bpasero
Copy link
Copy Markdown
Member

@bpasero bpasero commented Sep 27, 2025

No description provided.

Copilot AI review requested due to automatic review settings September 27, 2025 05:07
@bpasero bpasero enabled auto-merge (squash) September 27, 2025 05:07
@bpasero bpasero self-assigned this Sep 27, 2025
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 improves the welcome experience for users accessing Chat functionality without authentication by refining the conditions that determine which Copilot setup steps are shown in the getting started walkthrough.

  • Updates the anonymous chat setup step visibility condition to exclude cases where chat is already installed
  • Modifies the complete setup step to include anonymous users in the success criteria

type: 'steps',
steps: [
createCopilotSetupStep('CopilotSetupAnonymous', CopilotAnonymousButton, 'chatAnonymous', true),
createCopilotSetupStep('CopilotSetupAnonymous', CopilotAnonymousButton, 'chatAnonymous && !chatSetupInstalled', true),
Copy link

Copilot AI Sep 27, 2025

Choose a reason for hiding this comment

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

The condition chatAnonymous && !chatSetupInstalled creates a logical inconsistency. If a user is in anonymous mode, they shouldn't need to check for installation status since anonymous usage typically doesn't require installation. Consider clarifying the relationship between these states or adding a comment explaining when both conditions would be true.

Suggested change
createCopilotSetupStep('CopilotSetupAnonymous', CopilotAnonymousButton, 'chatAnonymous && !chatSetupInstalled', true),
// Only show this step when the user is anonymous. Installation status is not relevant for anonymous usage.
createCopilotSetupStep('CopilotSetupAnonymous', CopilotAnonymousButton, 'chatAnonymous', true),

Copilot uses AI. Check for mistakes.
createCopilotSetupStep('CopilotSetupAnonymous', CopilotAnonymousButton, 'chatAnonymous && !chatSetupInstalled', true),
createCopilotSetupStep('CopilotSetupSignedOut', CopilotSignedOutButton, 'chatEntitlementSignedOut && !chatAnonymous', false),
createCopilotSetupStep('CopilotSetupComplete', CopilotCompleteButton, 'chatSetupInstalled && !chatSetupDisabled && (chatPlanPro || chatPlanProPlus || chatPlanBusiness || chatPlanEnterprise || chatPlanFree)', false),
createCopilotSetupStep('CopilotSetupComplete', CopilotCompleteButton, 'chatSetupInstalled && !chatSetupDisabled && (chatAnonymous || chatPlanPro || chatPlanProPlus || chatPlanBusiness || chatPlanEnterprise || chatPlanFree)', false),
Copy link

Copilot AI Sep 27, 2025

Choose a reason for hiding this comment

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

The condition combines chatSetupInstalled with chatAnonymous, which appears contradictory since anonymous usage typically doesn't require installation. This mixed logic could lead to confusing user experiences where the complete step shows for anonymous users who shouldn't have anything installed.

Suggested change
createCopilotSetupStep('CopilotSetupComplete', CopilotCompleteButton, 'chatSetupInstalled && !chatSetupDisabled && (chatAnonymous || chatPlanPro || chatPlanProPlus || chatPlanBusiness || chatPlanEnterprise || chatPlanFree)', false),
createCopilotSetupStep('CopilotSetupComplete', CopilotCompleteButton, 'chatSetupInstalled && !chatSetupDisabled && (chatPlanPro || chatPlanProPlus || chatPlanBusiness || chatPlanEnterprise || chatPlanFree)', false),

Copilot uses AI. Check for mistakes.
@vs-code-engineering vs-code-engineering bot added this to the September 2025 milestone Sep 27, 2025
@bpasero bpasero merged commit a07969e into main Sep 27, 2025
28 checks passed
@bpasero bpasero deleted the ben/detailed-vole branch September 27, 2025 07:45
@vs-code-engineering vs-code-engineering bot locked and limited conversation to collaborators Nov 11, 2025
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.

3 participants