Skip to content

feat: enhance authentication handling for web sessions and account initialization#311538

Merged
osortega merged 1 commit intomainfrom
osortega/auth-fixes
Apr 21, 2026
Merged

feat: enhance authentication handling for web sessions and account initialization#311538
osortega merged 1 commit intomainfrom
osortega/auth-fixes

Conversation

@osortega
Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings April 20, 2026 23:33
@github-actions
Copy link
Copy Markdown
Contributor

Screenshot Changes

Base: 4e3f7dcb Current: 5812753e

Changed (2)

chat/aiCustomizations/aiCustomizationManagementEditor/McpBrowseMode/Light
Before After
before after
agentSessionsViewer/ApprovalRowLongLabel/Dark
Before After
before after

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 adjusts web-only behavior so the Agents (sessions) workbench can initialize account + entitlement state even when running without a remote authority, and improves the welcome walkthrough behavior when GitHub authentication sessions are lost.

Changes:

  • Allow Copilot chat entitlement setup to run in the Sessions window on web-no-remote by refining the “hide on web” guard.
  • Allow default account initialization to run for the Sessions window on web-no-remote (while still skipping classic vscode.dev editor).
  • Add a web-only auth session watcher that re-shows the welcome walkthrough when the last GitHub session is removed.
Show a summary per file
File Description
src/vs/workbench/services/chat/common/chatEntitlementService.ts Stops hiding Copilot UI for the web Sessions window when there’s no remote authority.
src/vs/workbench/services/accounts/browser/defaultAccount.ts Ensures default account initialization runs in the web Sessions window (vscode.dev/agents), but remains skipped for classic web-no-remote.
src/vs/sessions/contrib/welcome/browser/welcome.contribution.ts Adds web-only monitoring for GitHub session removal to clear the welcome completion marker and re-show the sign-in walkthrough.

Copilot's findings

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

Comment thread src/vs/sessions/contrib/welcome/browser/welcome.contribution.ts
@osortega osortega marked this pull request as ready for review April 21, 2026 00:12
@osortega osortega enabled auto-merge (squash) April 21, 2026 00:12
@osortega osortega merged commit ebb2ebc into main Apr 21, 2026
38 checks passed
@osortega osortega deleted the osortega/auth-fixes branch April 21, 2026 00:13
@vs-code-engineering vs-code-engineering Bot added this to the 1.118.0 milestone Apr 21, 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