Skip to content

agents: enhance welcome screen for first-launch and signed-in users#312627

Merged
sandy081 merged 2 commits intomainfrom
sandy081/agents-welcome-screen
Apr 26, 2026
Merged

agents: enhance welcome screen for first-launch and signed-in users#312627
sandy081 merged 2 commits intomainfrom
sandy081/agents-welcome-screen

Conversation

@sandy081
Copy link
Copy Markdown
Member

Summary

Enhances the Agents App welcome screen to provide a tailored experience based on whether the user is signed in and whether it's their first launch.

Changes

Three distinct welcome experiences:

  1. First-launch + already signed in → Welcome greeting screen with a "Get Started" button (no sign-in required)
  2. First-launch + not signed in → Enhanced sign-in screen with welcome content
  3. Returning + not signed in → Plain sign-in screen (unchanged behavior)

Other improvements:

  • Updated sign-in button label to "Sign in with GitHub"
  • Added "Happy Agentic Coding!" tagline to welcome screens
  • Added isFirstLaunch parameter to SessionsWalkthroughOverlay
  • Fixed race condition: isShowingWelcome is now set synchronously in the constructor so the autorun guard doesn't auto-dismiss the overlay before the welcome renders
  • Fixed developer reset command (workbench.action.resetSessionsWelcome) to properly simulate a first-launch experience

Files changed

  • sessionsWalkthrough.ts — core overlay; added _isFirstLaunch param, isShowingWelcome getter, _renderWelcome() method
  • welcome.contribution.ts — overlay lifecycle; added isFirstLaunch passing, autorun guard, reset command fix
  • sessionsWalkthrough.css — welcome action/button/tagline styles
  • welcome.contribution.test.ts — updated tests to pass isFirstLaunch = true

- Show a personalized welcome greeting with 'Get Started' button for
  first-launch users who are already signed in
- Show enhanced sign-in screen with welcome content for first-launch
  users who are not yet signed in
- Show plain sign-in screen for returning users who are not signed in
- Add 'Happy Agentic Coding!' tagline to all welcome screens
- Update 'Sign in with GitHub' button label
- Add `isFirstLaunch` parameter to `SessionsWalkthroughOverlay`
- Guard autorun auto-dismiss with `isShowingWelcome` to prevent race
  condition where overlay is dismissed before welcome renders
- Fix developer reset command to simulate first-launch experience

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings April 26, 2026 19:58
@sandy081 sandy081 enabled auto-merge (squash) April 26, 2026 19:58
@sandy081 sandy081 added this to the 1.118.0 milestone Apr 26, 2026
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 enhances the Agents window welcome/onboarding overlay so it can present different first-run experiences depending on whether the user is already signed in and whether it’s the user’s first launch, while also tightening the overlay lifecycle to avoid premature auto-dismissal.

Changes:

  • Added a first-launch + already-signed-in “Welcome” greeting state with a “Get Started” action and an isShowingWelcome guard to prevent autorun from auto-dismissing the overlay.
  • Threaded a new isFirstLaunch parameter through SessionsWalkthroughOverlay creation (including the developer reset command path).
  • Updated styling for the new welcome action/tagline and adjusted tests to pass the new constructor parameter.
Show a summary per file
File Description
src/vs/sessions/contrib/welcome/browser/sessionsWalkthrough.ts Adds isFirstLaunch, welcome-greeting rendering, isShowingWelcome guard, and updates sign-in copy.
src/vs/sessions/contrib/welcome/browser/welcome.contribution.ts Passes isFirstLaunch, updates autorun guard to respect the welcome-greeting state, and fixes reset behavior.
src/vs/sessions/contrib/welcome/browser/media/sessionsWalkthrough.css Adds styles for the new “Get Started” button and tagline.
src/vs/sessions/contrib/welcome/test/browser/welcome.contribution.test.ts Updates overlay instantiation to include the new isFirstLaunch parameter.

Copilot's findings

  • Files reviewed: 4/4 changed files
  • Comments generated: 3

Comment thread src/vs/sessions/contrib/welcome/browser/sessionsWalkthrough.ts Outdated
Comment thread src/vs/sessions/contrib/welcome/browser/sessionsWalkthrough.ts Outdated
Comment thread src/vs/sessions/contrib/welcome/browser/sessionsWalkthrough.ts
- Gate subtitle/tagline behind _isFirstLaunch: returning users see only
  'Sign in to continue.' with no tagline; first-launch users see the AI
  subtitle and 'Happy Agentic Coding!' tagline
- Use a single subtitleEl for both paths so _fadeToProgress can update
  it correctly without stale extra paragraphs
- Add unit test for first-launch + already-signed-in welcome screen:
  verifies isShowingWelcome guard, Get Started button presence, absence
  of sign-in buttons, and completion on click

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@sandy081 sandy081 merged commit 6743fb4 into main Apr 26, 2026
40 of 41 checks passed
@sandy081 sandy081 deleted the sandy081/agents-welcome-screen branch April 26, 2026 23:33
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