Skip to content

feat(THU-616): explain why opposite-mode models are disabled in selector#1007

Open
raivieiraadriano92 wants to merge 1 commit into
mainfrom
raivieiraadriano92/thu-616-model-selector-explain-why-opposite-mode-models-are-disabled
Open

feat(THU-616): explain why opposite-mode models are disabled in selector#1007
raivieiraadriano92 wants to merge 1 commit into
mainfrom
raivieiraadriano92/thu-616-model-selector-explain-why-opposite-mode-models-are-disabled

Conversation

@raivieiraadriano92

@raivieiraadriano92 raivieiraadriano92 commented Jun 18, 2026

Copy link
Copy Markdown
Collaborator

A chat is locked to its confidentiality mode, so the opposite-mode models appear greyed out in the model selector with no explanation. Adds a header + helper text above the disabled bucket — Standard Models / Not available in confidential chats. and Confidential Models / Available only in confidential chats. — using the label+subtitle slot SearchableMenu already renders for groups.

Fixes THU-616.


Note

Low Risk
Copy-only UI grouping in the model selector; no selection logic or backend changes.

Overview
Greyed-out models in the model selector now show why they can’t be selected, instead of appearing in a silent disabled bucket.

categorizeModels sets label and subtitle on the encryption-mismatch groups: Standard Models with Not available in confidential chats. in confidential chats, and Confidential Models with Available only in confidential chats. in standard chats. SearchableMenu already renders those group fields; tests were updated to match.

Reviewed by Cursor Bugbot for commit 7ddc07a. Bugbot is set up for automated code reviews on this repo. Configure here.

@raivieiraadriano92 raivieiraadriano92 self-assigned this Jun 18, 2026
@raivieiraadriano92 raivieiraadriano92 marked this pull request as ready for review June 18, 2026 21:39
@github-actions

Copy link
Copy Markdown

Semgrep Security Scan

No security issues found.

@github-actions

Copy link
Copy Markdown

Preview environment deployed 🚀

Service URL
Marketing / blog / docs https://thunderbolt-pr-1007.preview.thunderbolt.io
App https://app-pr-1007.preview.thunderbolt.io
API https://api-pr-1007.preview.thunderbolt.io
Keycloak https://auth-pr-1007.preview.thunderbolt.io
PowerSync https://powersync-pr-1007.preview.thunderbolt.io

Stack: preview-pr-1007 · Commit: 7ddc07ade09b78420927d750b541f07cdad12700

Auto-destroys on PR close/merge. Login via the bundled Keycloak realm — demo@thunderbolt.io / demo by default.

@github-actions

Copy link
Copy Markdown

PR Metrics

Metric Value
Lines changed (prod code) +15 / -5
JS bundle size (gzipped) 🟢 682.3 KB → 682.1 KB (-143 B, -0.0%)
Test coverage 🟢 78.09% → 78.09% (+0.0%)
Performance (preview) Preview not ready — Render deploy may have timed out
Accessibility
Best Practices
SEO

Updated Thu, 18 Jun 2026 21:45:03 GMT · run #1957

@raivieiraadriano92 raivieiraadriano92 changed the title feat: explain why opposite-mode models are disabled in selector feat(THU-616): explain why opposite-mode models are disabled in selector Jun 19, 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.

1 participant