* Fix enterprise BYOK issues: hidden models, disabled button, account carryover
Fix three bugs in the BYOK (Bring Your Own Key) model feature:
1. #309499 - BYOK models hidden by default: Add isUserSelectable: true
to byokKnownModelToAPIInfo() so models appear in the picker on
registration instead of defaulting to hidden.
2. #309492 - Add Models button disabled when BYOK enabled: Call
_updateClientByokEnabledContext() during ContextKeysContribution
initialization so the clientByokEnabled context key is set before
the Language Models view renders.
3. #309501 - BYOK model carries over from individual account: Use a
separate DisposableStore for BYOK provider registrations and clear
them when switching to an account with BYOK disabled, resetting
the registration flag to allow re-registration on next auth change.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Fix Language Models UI not refreshing on group add/remove (#309495)
The Language Models view did not auto-update when:
- Adding a BYOK model with an invalid configuration (error status)
- Removing a BYOK model group
Root cause: _resolveAllLanguageModels only checked model cache changes
to decide whether to fire onDidChangeLanguageModels. When groups were
added/removed but the model set didn't change (e.g., groups with errors
or empty groups), the event never fired and the UI stayed stale.
Fixes:
1. Add _hasGroupStructureChanged to detect group-level changes (count,
names, statuses) independently of model cache changes
2. Add explicit viewModel.refresh() after delete action, matching the
pattern already used by the managementCommand path
3. Await configureLanguageModelsProviderGroup in addModelsForVendor and
refresh the view model after the add flow completes
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
---------
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* chronicle
* local and cloud store
* upload vscode events to remote store
* few updates
* consent ui and settings
* few optimizations
* test fix
* feedback updates
* test fix
* check setting to enable cmd
* fix test
* Settings update and tool update
* command update
* Settings update
* merge main
* feedback updates
* setting and test update
* few updates
* updates
* test update
* blocks ci update
* feedback updates
* comment update
- Add isClientBYOKEnabled() method to CopilotToken class
- Update isBYOKEnabled to allow users with client_byok=1 token flag
- Add github.copilot.clientByokEnabled context key for VS Code core model picker
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Improve logging
* Add setting for testing failure cases
* Add welcome view for failed GitHub login
* Use Sign In command
* Polish and fix test failure
* track permissiveSessionAuth as context key and react to it in cloud-agent view
* do not block if run and then cancelled
* code review suggestion adding catch