Skip to content

Add Agents app banner to welcome page footer#308911

Draft
osortega wants to merge 1 commit intomainfrom
agents/scared-mink
Draft

Add Agents app banner to welcome page footer#308911
osortega wants to merge 1 commit intomainfrom
agents/scared-mink

Conversation

@osortega
Copy link
Copy Markdown
Contributor

@osortega osortega commented Apr 10, 2026

Summary

Adds a banner button in the welcome page footer that promotes the new Agents app.
Screenshot 2026-04-09 at 5 10 25 PM

Changes

  • Banner button: Displays an agent icon with "Try out the new Agents app" text. Clicking it executes the workbench.action.openAgentsWindow command.
  • Learn more link: Opens code.visualstudio.com in the browser. Click is isolated from the button via stopPropagation.
  • Telemetry: Logs openAgentsWindow and openAgentsLearnMore actions.
  • CSS: Adds styling for the .agents-banner element with proper theming integration, centered layout, and rounded corners.

Screenshot reference

The banner appears in the footer area of the welcome page, above the "Show welcome page on startup" checkbox.

Add a banner button in the welcome page footer that allows users to try
out the new Agents app. The banner includes:
- A button with the agent icon and 'Try out the new Agents app' label
  that executes the workbench.action.openAgentsWindow command
- A 'Learn more' link that opens code.visualstudio.com
- Telemetry logging for both actions
- CSS styling for the banner with proper theming integration

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings April 10, 2026 00:17
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

Adds a promotional “Agents app” banner to the Welcome / Getting Started page footer, intended to open the Agents window and provide a “Learn more” link, with corresponding telemetry.

Changes:

  • Adds a footer banner button that dispatches openAgentsWindow and executes workbench.action.openAgentsWindow.
  • Adds a “Learn more” link that opens https://code.visualstudio.com and logs telemetry.
  • Introduces CSS rules for .agents-banner and its inner layout/link styling.
Show a summary per file
File Description
src/vs/workbench/contrib/welcomeGettingStarted/browser/media/gettingStarted.css Styles the new footer banner and “Learn more” link.
src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.ts Renders the banner/link in the footer and wires up dispatch + telemetry + opener behavior.

Copilot's findings

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

Comment on lines +494 to +496
case 'openAgentsWindow': {
this.commandService.executeCommand('workbench.action.openAgentsWindow');
break;
Copy link

Copilot AI Apr 10, 2026

Choose a reason for hiding this comment

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

workbench.action.openAgentsWindow is only registered in the desktop (electron-browser) layer. Because the banner is rendered unconditionally on the welcome page, clicking it in web builds (or any environment where the command isn’t registered) will reject the command execution and can surface as an unhandled promise rejection. Consider gating the banner/button on command availability (e.g. CommandsRegistry.getCommand(...)), and/or await + handle errors with a fallback (hide banner, show notification, or open a relevant URL).

Copilot uses AI. Check for mistakes.
Comment on lines +946 to +954
const agentsBannerButton = $('button.getting-started-category.agents-banner', {
'x-dispatch': 'openAgentsWindow',
title: localize('welcomePage.tryAgentsApp', "Try out the new Agents app"),
},
$('.main-content', {},
$('.codicon.codicon-agent.icon-widget'),
$('h3.category-title.max-lines-3', {}, localize('welcomePage.tryAgentsAppLabel', "Try out the new Agents app")),
learnMoreLink,
),
Copy link

Copilot AI Apr 10, 2026

Choose a reason for hiding this comment

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

The banner button nests an <a> element (learnMoreLink) inside a <button>, which is invalid HTML and causes accessibility/interaction issues (the inner link typically won’t be keyboard-focusable and screen readers may announce it incorrectly). Also, the anchor is created without an href, so it isn’t treated as a real link. Restructure so the “Learn more” link is a sibling element (or the outer container isn’t a <button>), and provide an href for proper semantics while still using stopPropagation/preventDefault for the opener behavior if needed.

Copilot uses AI. Check for mistakes.
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.

2 participants