Commit Graph

29 Commits

Author SHA1 Message Date
Dmitriy Vasyura d61f56e9ee Enable BYOK in air-gapped scenarios/without GitHub auth (#317428)
Air-gapped BYOK: enable chat and some other AI functionality when user is not authenticated (with or without utility models enabled).
2026-05-21 00:01:00 +00:00
Matt Bierner 91f6127cc9 Merge pull request #316142 from microsoft/dev/mjbvz/important-anglerfish
Gate external ingest on policy on token
2026-05-15 10:25:46 -07:00
Dmitriy Vasyura 08244096a5 BYOK: Enable Manage Language Models commands without GitHub sign-in (#316202)
---------

Co-authored-by: Copilot <copilot@github.com>
2026-05-13 22:30:59 -07:00
Matt Bierner 95c4bd8620 Gate external ingest on policy on token
This allows enterprises to opt out of external ingest
2026-05-12 16:03:58 -07:00
Vijay Upadya 0e1f836c91 Make localIndex setting public (#312402)
* Make localIndex setting public

Co-authored-by: Copilot <copilot@github.com>

* fix the namespace

* update desc

---------

Co-authored-by: Copilot <copilot@github.com>
2026-04-24 12:01:36 -07:00
Pierce Boggan 50f36fc4ff Fix enterprise BYOK issues: hidden models, disabled button, account carryover (#309889)
* 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>
2026-04-17 21:54:19 -06:00
Vijay Upadya 602484ad5f Chronicle - local and remote (#308602)
* 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
2026-04-16 10:31:39 +02:00
Pierce Boggan 4c4b9906a5 Allow BYOK for business/enterprise users with client_byok policy (#308608)
- 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>
2026-04-09 09:07:19 -04:00
Christof Marti 30d01ec456 Improve error handling (#3278)
* Improve logging

* Add setting for testing failure cases

* Add welcome view for failed GitHub login

* Use Sign In command

* Polish and fix test failure
2026-01-29 20:07:20 +00:00
Christof Marti ddb16e24b8 Welcome views for invalid GitHub token and rate limit (#3269) 2026-01-29 10:19:52 +00:00
Benjamin Christopher Simmonds 31b7611500 Remove chat_enabled organization policy (#2978)
* remove chat_enabled org policy

* remove context key
2026-01-19 12:00:15 +00:00
Christof Marti 5f3f31f751 Still poll when activated (#2910) 2026-01-16 07:47:54 +00:00
Christof Marti 437eb6f69b Only during activiation (#2817) 2026-01-13 22:20:28 +00:00
Christof Marti d3d5d02e5c Show offline view for all remaining errors (#2793)
* Show offline view for all remaining errors

* Add log and diagnostics commands
2026-01-12 21:57:41 +00:00
Tyler James Leonhardt c90db9ae49 Move to new auth API shape (#2595)
This will be more intentional on when one token is needed than the other.
2025-12-15 23:39:33 +00:00
Benjamin Pasero 9a027a5a43 debt - removal of agent sessions view (#2536)
* debt - removal of agent sessions view

* more

* more
2025-12-11 14:46:14 +00:00
Sandeep Somavarapu fedde4f1f1 clean up: (#2040)
* clean up:
- simplify namespaces
- simplify defining settings

* fix unused configs
2025-11-17 14:32:52 +00:00
Josh Spicer 4479e9d0c8 track permissiveSessionAuth as context key and react to it in cloud-agent view (#1861)
* 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
2025-11-07 21:12:53 +00:00
Rob Lourens 89ffd42e13 Wait for extension install before running command (#1617)
* Wait for extension install before running command

* Comments
2025-10-25 19:47:39 +00:00
Rob Lourens c6d3815b73 Launch agent panel with source arg (#1615) 2025-10-25 19:09:06 +00:00
Rob Lourens a6aab30503 Limit placeholder view visibility (#1598)
* Limit placeholder view visibility

* Efficiency
2025-10-25 16:02:16 +00:00
Copilot 7eae623c6c Install and proxy GHPR commands (starting with github.copilot.cloud.sessions.proxy.closeChatSessionPullRequest) (#1516)
* Initial plan

* Add PR extension install button for copilot cloud agent in multiDiff context

Co-authored-by: joshspicer <23246594+joshspicer@users.noreply.github.com>

* Extract PR extension ID to shared constant and add error handling

Co-authored-by: joshspicer <23246594+joshspicer@users.noreply.github.com>

* Wait for extension installation to complete before showing success message

* Install pre-release version of PR extension in VS Code Insiders

Co-authored-by: joshspicer <23246594+joshspicer@users.noreply.github.com>

* Use envService to detect VS Code Insiders instead of vscode.version

Co-authored-by: joshspicer <23246594+joshspicer@users.noreply.github.com>

* tidy

* Dynamically update context key after PR extension installation

Co-authored-by: joshspicer <23246594+joshspicer@users.noreply.github.com>

* remove comment

* add proxy commands

* catch and show error

* add close PR

* remove checkoutFromDescription and applyChangesFromDescription for now

* hide github.copilot.cloud.sessions.proxy.closeChatSessionPullRequest from f1

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: joshspicer <23246594+joshspicer@users.noreply.github.com>
2025-10-23 20:53:27 +00:00
Rob Lourens 41d5d06f7a Add placeholder chat session provider view (#1520)
* Add placeholder chat session provider view

* Copilot comments :(
2025-10-22 20:14:20 +00:00
Logan Ramos 06b6bc8c3c Remove stale context key (#726) 2025-08-22 16:51:33 +00:00
Henning Dieterichs 5a50ffb962 Copies sources from vscode (#688)
* Copy sources from vscode

* NodeJS.Timeout -> TimeoutHandle

* Fixes copy sources fallout

* Fixes snapshots
2025-08-20 09:46:00 +00:00
Ulugbek Abdullaev 6c7f7fbed6 logService: simplify API (#375) 2025-07-28 08:00:50 +00:00
Rob Lourens 8567a6e581 Expose "/error" command when debugging extension (#135) 2025-07-07 05:00:15 +00:00
SteVen Batten cf39f458b6 fix default visibiliy of copilot chat debug view 2025-06-27 10:53:58 -07:00
kieferrm 333d9a4053 Hello Copilot
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
2025-06-27 11:35:20 +02:00