Skip to content

Show session types as disabled with Sign in button when user is offline#321861

Merged
dmitrivMS merged 7 commits into
mainfrom
dev/dmitriv/agent-host-require-sign-in
Jun 25, 2026
Merged

Show session types as disabled with Sign in button when user is offline#321861
dmitrivMS merged 7 commits into
mainfrom
dev/dmitriv/agent-host-require-sign-in

Conversation

@dmitrivMS

Copy link
Copy Markdown
Contributor

Fixes #321805

Copilot AI review requested due to automatic review settings June 18, 2026 00:19
@dmitrivMS dmitrivMS added the chat label Jun 18, 2026
@dmitrivMS dmitrivMS requested a review from pwang347 June 18, 2026 00:19
@dmitrivMS dmitrivMS self-assigned this Jun 18, 2026
@dmitrivMS dmitrivMS enabled auto-merge (squash) June 18, 2026 00:19

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 tightens session-type availability logic so that when the user is signed out, Copilot-backed session types (e.g. Agent Host / Copilot CLI / Cloud) appear disabled and surface a Sign in affordance instead of appearing selectable.

Changes:

  • Added a new SessionTypeAvailability.SignInRequired state and corresponding description/hover/label strings with a workbench.action.chat.triggerSetup sign-in link.
  • Updated getSessionTypeAvailability to return SignInRequired when ChatEntitlement.Unknown (signed out) for contributed session types.
  • Expanded unit coverage for signed-out scenarios (including cases where Auto fallback or targeted models would otherwise make the type appear available).
Show a summary per file
File Description
src/vs/workbench/contrib/chat/browser/agentSessions/sessionTypeAvailability.ts Adds SignInRequired and sign-in messaging; updates availability logic for signed-out users.
src/vs/workbench/contrib/chat/test/browser/agentSessions/sessionTypeAvailability.test.ts Adds tests validating signed-out gating behavior across contributed session-type configurations.

Copilot's findings

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

pwang347
pwang347 previously approved these changes Jun 18, 2026
@dmitrivMS dmitrivMS disabled auto-merge June 18, 2026 00:28
@dmitrivMS dmitrivMS marked this pull request as draft June 18, 2026 01:19

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot's findings

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

Comment thread src/vs/workbench/contrib/chat/common/chatSessionsService.ts
Comment thread src/vs/workbench/contrib/chat/browser/agentSessions/sessionTypeAvailability.ts Outdated
Comment thread src/vs/workbench/contrib/chat/browser/agentSessions/sessionTypeAvailability.ts Outdated
@dmitrivMS dmitrivMS marked this pull request as ready for review June 25, 2026 21:10
@dmitrivMS dmitrivMS enabled auto-merge (squash) June 25, 2026 21:11
@dmitrivMS dmitrivMS added the agent-host Issues for the agent-host implementation (not the protocol) label Jun 25, 2026
@dmitrivMS dmitrivMS merged commit dd7a4b9 into main Jun 25, 2026
29 checks passed
@dmitrivMS dmitrivMS deleted the dev/dmitriv/agent-host-require-sign-in branch June 25, 2026 23:17
@vs-code-engineering vs-code-engineering Bot added this to the 1.127.0 milestone Jun 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent-host Issues for the agent-host implementation (not the protocol) chat

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

AH Copilot CLI available when not signed in

4 participants