Skip to content

Add admin-disabled vision tooltip for image attachments#3305

Draft
Copilot wants to merge 2 commits intomainfrom
copilot/add-image-attachment-warning
Draft

Add admin-disabled vision tooltip for image attachments#3305
Copilot wants to merge 2 commits intomainfrom
copilot/add-image-attachment-warning

Conversation

Copy link
Contributor

Copilot AI commented Jan 30, 2026

When an image is attached to chat but vision is unavailable, the reference is currently greyed out with a generic “model does not support images” warning. For biz/enterprise users with editor preview features disabled by policy, the hover text should instead indicate admin-disabled vision support.

  • Attachment status messaging
    • Update image and file attachment reference rendering to emit a policy-specific tooltip when preview features are disabled for business/enterprise tokens.
  • Coverage
    • Add a unit test to assert the admin-disabled tooltip in FileVariable rendering.
const copilotToken = this.authService.copilotToken;
if (copilotToken && !copilotToken.isEditorPreviewFeaturesEnabled()) {
	const plan = copilotToken.copilotPlan;
	if (plan === 'business' || plan === 'enterprise') {
		return l10n.t("Vision support is disabled by your admin.");
	}
}

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: pierceboggan <1091304+pierceboggan@users.noreply.github.com>
Copilot AI changed the title [WIP] Add warning message for unsupported image attachments Add admin-disabled vision tooltip for image attachments Jan 30, 2026
Copilot AI requested a review from pierceboggan January 30, 2026 02:28
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