chat: improve ChatApprovedAccountOrganizations restriction messaging#313324
Merged
Conversation
Reframes the gate messaging to clearly attribute the restriction to the administrator rather than using passive 'approved organization' language.
- Notifications now read 'Your administrator restricts AI features to GitHub accounts in the following organizations: {orgs}.' with account-specific context when available
- Splash screen title updated to 'Sign-In Required by Your Administrator'
- Splash org list heading updated from 'Approved organizations:' to 'Allowed organizations:'
- Drops redundant 'Contact your administrator for more information.' footer from splash (the title already attributes the source)
- Simplifies notification branching by unifying OrgNotApproved and noAccount/wrongProvider cases into a single consistent shape
Refs #312534
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
|
|
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates user-facing messaging for the ChatApprovedAccountOrganizations policy gate to clearly attribute restrictions to the user’s administrator (instead of implying VS Code controls “approved orgs”), both in VS Code notifications and the Agents app blocked overlay.
Changes:
- Rewords policy-gate notifications to use consistent “administrator restricts …” language and simplifies branching.
- Updates the Agents app policy-blocked splash screen title/body/org heading to match the new framing and removes the “contact your administrator” footer text.
- Adjusts wildcard (
*) messaging to a “specific GitHub accounts” framing.
Show a summary per file
| File | Description |
|---|---|
| src/vs/workbench/services/policies/browser/accountPolicyGateContribution.ts | Reframes and unifies notification text for the account policy gate, including org list and wildcard cases. |
| src/vs/sessions/contrib/policyBlocked/browser/sessionsPolicyBlocked.ts | Rewords Agents “policy blocked” overlay copy (title/body/heading/aria-label) and removes the footer contact text. |
Copilot's findings
- Files reviewed: 2/2 changed files
- Comments generated: 1
roblourens
previously approved these changes
Apr 29, 2026
Member
Author
|
Agent-Logs-Url: https://github.com/microsoft/vscode/sessions/150065f9-6482-45ed-bc65-146739992e2b Co-authored-by: joshspicer <23246594+joshspicer@users.noreply.github.com>
Contributor
Addressed in 85f9e63: the Agents blocked overlay title is back to "Sign-In Required" and the administrator contact guidance is restored. Screenshot: https://github.com/user-attachments/assets/f4161210-3578-4629-820e-85c0f36fcfd1 |
dmitrivMS
approved these changes
Apr 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Reframes the
ChatApprovedAccountOrganizationsgate messaging to clearly attribute the restriction to the administrator, rather than using passive "approved organization" language that could imply VS Code itself controls the list.Changes
Notifications (
accountPolicyGateContribution.ts):OrgNotApprovedvsnoAccount/wrongProviderbranches into a single consistent message shape*) case: "Your administrator restricts AI features to specific GitHub accounts. The account "{name}" does not qualify."Splash screen (
sessionsPolicyBlocked.ts):Refs #312534