Skip to content

Add hidden feature switch for the new Configure LLM Providers modal#14856

Open
bricestacey wants to merge 1 commit into
mainfrom
14814/feature-switch-new-configure-llm-modal
Open

Add hidden feature switch for the new Configure LLM Providers modal#14856
bricestacey wants to merge 1 commit into
mainfrom
14814/feature-switch-new-configure-llm-modal

Conversation

@bricestacey

Copy link
Copy Markdown
Contributor

Fixes #14814

Summary

Adds a hidden feature switch that selects a new "Configure LLM Providers" modal over the legacy language model provider dialog. This is the first step of a larger effort; the new modal's chrome and provider flows land in follow-ups (#14815, #14818, #14819).

The switch (assistant.newProviderModal) is intentionally not contributed to the configuration registry, so it stays hidden from the Settings editor and defaults to the legacy dialog. All provider-configuration entry points (the Configure Language Model Providers command, the Accounts menu item, and the "Configure" notification action) funnel through PositronAssistantService.showLanguageModelModalDialog, so the switch is read live in that single place. This PR also adds a minimal shell so the switch has something to open.

Release Notes

New Features

  • N/A

Bug Fixes

  • N/A

Validation Steps

@:assistant

  1. Run the Configure Language Model Providers command (or the Accounts menu item) and verify the existing provider dialog opens (unchanged behavior).
  2. Add "assistant.newProviderModal": true to settings.json (hidden setting, won't autocomplete).
  3. Re-run the command and verify the new "Configure LLM Providers" modal opens instead.
  4. Click Close and verify the modal dismisses.
  5. Remove the setting and confirm the legacy dialog returns.

Gate a new provider-configuration modal behind a hidden, uncontributed
setting (assistant.newProviderModal, default false). All provider-config
entry points funnel through PositronAssistantService.showLanguageModelModalDialog,
so the switch is read live in that single place to select between the new
modal and the legacy dialog.

Adds a minimal shell for the new modal; the header/footer chrome and
provider flows are built out in follow-up work.

See #14814
@github-actions

Copy link
Copy Markdown

E2E Tests 🚀
This PR will run tests tagged with: @:critical @:assistant

Why these tags?
Tag Source
@:critical Always runs (required)
@:assistant PR description

More on automatic tags from changed files.

readme  valid tags

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.

Add feature switch for new Configure LLM Providers modal

1 participant