Commit Graph
43 Commits
Author SHA1 Message Date
Logan RamosandCopilot b65327e196 Make Copilot GitHub Status aware (#4165)
* Make Copilot GitHub Status aware

* Update src/platform/chat/common/commonTypes.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Fix tests

* Tests pass now I hope thanks

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-03-03 21:28:14 +00:00
Osvaldo Ortega 13f17b76ce Adding branch name to metadata cloud provider (#4138)
* Adding branch name to metadata cloud provider

* Review comment
2026-03-03 02:09:09 +00:00
Paul 8564af0be9 Deprecate infer for org custom agents and support new properties (#3817)
* deprecate

* user-invocable
2026-02-18 21:32:31 +00:00
Paul ded7091497 Don't throw errors for org custom instructions flow in personal repo (#3735)
* fix org error

* update
2026-02-13 23:11:06 +00:00
Paul 232d2269ad Fix for org agents/instructions to handle pagination cases better (#3298)
* fix

* more clean

* nit
2026-01-30 01:02:06 +00:00
Josh SpicerandCopilot 89771ff43a Cloud Agent: check /enabled (#3241)
* Cloud Agent: check /enabled

* Update src/platform/github/common/githubService.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-01-28 21:02:09 +00:00
PaulandCopilot e8a3ddf7c7 Add support for organization custom instructions (#2310)
* PR

* activation

* fix test

* wip

* update

* tests

* Update src/platform/github/common/githubService.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update src/extension/agents/vscode-node/organizationInstructionsProvider.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update src/platform/github/common/octoKitServiceImpl.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* update

* update setting name

* wip

* fix

* use enum

* PR

* nit

* add polling

* tests

* cleanup

* use helper

* remove instructions

* clean

* Revert "clean"

This reverts commit d00db3841282483f0c122d815bf330d715c8e125.

* Revert "remove instructions"

This reverts commit 24f3e2ecabab76163eb32610f4d737d0406f98da.

* update

* update per discussion

* clean

* update

* update

* Update

* update

* update

* clean

* test

* test

* fixes

* fixes

* fix tests

* update test

* yaml

* fix

* config update

* clean

* fix

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-01-22 20:21:02 +00:00
Osvaldo Ortega f6fa91f512 Repositories picker for cloud sessions (#2815) 2026-01-13 21:30:22 +00:00
31182a90c6 graphql query to detect partner agents (#2775)
* Initial plan

* Add GraphQL-based partner agent detection with caching

- Add GraphQL queries for fetching assignable actors (suggestedActors and assignableUsers APIs)
- Add getAssignableActors method to IOctoKitService interface
- Implement dynamic partner agent detection in CopilotCloudSessionsProvider
- Add caching mechanism to avoid repeated API calls
- Update known Copilot agent logins based on spec
- Fall back to hardcoded list when API is unavailable

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

* Fix MockOctoKitService to include getAssignableActors method

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

* Use HARDCODED_PARTNER_AGENTS `at` values for partner agents

- Create COPILOT_AGENT_METADATA mapping for known Copilot agent logins
- Look up `at` values from HARDCODED_PARTNER_AGENTS when available
- Preserve the `at` field structure from the hardcoded list

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

* Remove COPILOT_AGENT_METADATA and use HARDCODED_PARTNER_AGENTS directly

- Delete COPILOT_AGENT_METADATA mapping
- Simplify getAvailablePartnerAgents to check HARDCODED_PARTNER_AGENTS directly
- Check if agent ID or name matches assignable actors
- Preserve all fields from HARDCODED_PARTNER_AGENTS including `at` values

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

* polish

* Update src/extension/chatSessions/vscode-node/copilotCloudSessionsProvider.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* fix auth

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-01-09 21:52:46 +00:00
Josh Spicer 32a61ef650 polish partner agent integration (with hardcoded values and no repo checks (#2754) 2026-01-09 03:05:47 +00:00
Josh SpicerandCopilot dc65f64c8c CCA Model picker (#2740)
* CCA Model picker (depends on https://github.com/microsoft/vscode-capi/pull/53)

* bump copilot cli

* Update src/extension/chatSessions/vscode-node/copilotCloudSessionsProvider.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-01-08 19:57:48 +00:00
Tyler James Leonhardtandcopilot-swe-agent[bot] f407810077 Allow passing in auth behavior into octokit service (#2635)
* Allow passing in auth behavior into octokit service

Commit 1: Internal refactoring that does not influence behavior at all. It just sets us up to have control over the auth behavior.

* Set `createIfNone: false` to prevent auth prompts in organizationAndEnterpriseAgentProvider (#2636)

* Initial plan

* Change createIfNone to false and remove runWithAuthCheck method

Co-authored-by: TylerLeonhardt <2644648+TylerLeonhardt@users.noreply.github.com>

* Update src/extension/agents/vscode-node/organizationAndEnterpriseAgentProvider.ts

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: TylerLeonhardt <2644648+TylerLeonhardt@users.noreply.github.com>

* Fixes the bug

* Another case that should be a non-functional change

* Have service throw welknown error

---------

Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
2025-12-19 00:39:56 +00:00
Osvaldo Ortega 6a0659daa9 Reduce CCA polling (#2617) 2025-12-17 01:38:36 +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
Paul c34a120484 Support additional properties for custom org/enterprise agents (#2530)
* add properties

* update test
2025-12-11 19:49:51 +00:00
Matt Bierner 3c8134184b Enable no-unexternalized-strings in repo (#2448)
Enables the same `no-unexternalized-strings` with have in `vscode` in this repo. This make sure we have a more consistent style across repos and when generating edits
2025-12-05 18:45:12 +00:00
Paul 194f649eaa Make organization and enterprise agents available globally (#2393)
* wip

* add extra call

* updates

* use 5
2025-12-04 21:04:52 +00:00
Paul 0b46e30f59 Add support for GH Custom Agents (#2118)
* WIP

* WIP

* use git here

* repo

* Update name

* wip

* wip

* wip

* wip

* updates

* readonly

* revert

* update

* clean

* PR and test

* test update

* test update
2025-11-26 20:57:44 +00:00
Osvaldo Ortega 6c944a5c46 Fetch sessions without nwo (#2143)
* Fetch sessions without nwo

* Revert

* Package update
2025-11-21 23:32:44 +00:00
PaulandCopilot eeec70057e Update CAPI to 0.2.3 (#2135)
* update

* Update src/platform/github/common/githubService.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-11-21 18:54:42 +00:00
Josh Spicer 057fa609f6 Refactor cloud agent (#2097)
* refactor cloud session class

* pass correct context

* throw errors and fix parameter typo

* remove stale test

* remove debug markdown

* reset confirmations commadn

* some loose ends

* tweaks while rate limited

* update test

* more accurate

* nevermind

* add back cli handleConfirmationData

* nullptr

* restore test

* polish

* this is the pr uri

* polish
2025-11-20 06:47:04 +00:00
Osvaldo Ortegaandcopilot-swe-agent[bot] 4c93aa653e Using capi package for sessions APIs (#2052)
* Using capi package for sessions APIs

* Package update

* Initial plan

* Add error logging and fix logic error in getCustomAgents

Co-authored-by: osortega <48293249+osortega@users.noreply.github.com>

* Remove descriptive message from getAllOpenSessions error logging

Co-authored-by: osortega <48293249+osortega@users.noreply.github.com>

* Change to protected

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
2025-11-19 00:12:53 +00:00
Peng Lyu 216cf74887 reenable padawan content provider from chat ext itself (#2027)
* padawan diff: improve missing file content

* reenable content provider from chat ext itself
2025-11-15 06:31:34 +00:00
Alex Ross b40257ca51 Remove anys from githubAPI.ts (#1946)
* Remove anys from githubAPI.ts

* Remove from ignores
2025-11-12 10:47:21 +00:00
Ladislau Szomoru 3208e58b22 CCA - provide number of files modified in the pull request (#1872) 2025-11-08 13:53:18 +00:00
Josh Spicer d7848b3e05 permissive gh auth (#1817)
* permissive gh auth

* remove dead code
2025-11-06 18:59:54 +00:00
Josh SpicerandCopilot 41557e3351 fix cloud agent branch detection (#1786)
* fix cloud agent branch detection

* Update src/extension/chatSessions/vscode-node/copilotCloudSessionsProvider.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update src/platform/github/common/githubAPI.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-11-04 21:43:36 +00:00
Peng Lyu b5ff52a6d4 Support file content change part for cloud agent (#1641)
* Support file content change part for cloud agent

* move off Buffer

* 💄
2025-10-30 23:15:48 +00:00
Josh Spicer bc809f83c4 add closePullRequest() and adopt in cloud-agent (#1594)
* remove pr extension check

* add closePullRequest() and adopt in cloud-agent
2025-10-24 19:37:48 +00:00
Josh Spicer f2b112a42c wire up multifilediff part (#1485)
* wire up multifilediff part

* check in src/extension/chatSessions/vscode-node/pullRequestFileChangesService.ts

* pass readOnly flag to ChatResponseMultiDiffPart
2025-10-22 04:21:50 +00:00
Osvaldo Ortega 820098c130 CCA switch to use sessions API (#1455)
* CCA switch to use sessions API

* resource state filtering
2025-10-21 21:18:27 +00:00
Josh Spicer cc0e436fb8 Copilot Cloud Agent: Custom Agents (#1438)
* initial pass at cloud custom_agents

* add exclude_invalid_config=true

* conditionally report option and always report for untitled (adopts https://github.com/microsoft/vscode/pull/272333)
2025-10-20 22:05:57 +00:00
Osvaldo Ortega a79b04606b CCA support for PR card and PR link (#1411)
* CCA support for PR card and PR link

* Name mapping
2025-10-18 00:10:26 +00:00
Osvaldo Ortega 2a30bf0534 Support for initial problem statement (#1410) 2025-10-17 22:58:08 +00:00
Osvaldo OrtegaandCopilot 08efcdc3d6 CCA support for empty chat sessions (#1407)
* CCA support for empty chat sessions

* Update src/extension/chatSessions/vscode-node/copilotChatSessionsProvider.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-10-17 22:05:03 +00:00
Osvaldo Ortega 1198856b59 Fix for get sessions API type (#1403) 2025-10-17 19:28:00 +00:00
Osvaldo Ortega dad522d937 Fix for adding comment to PR (#1383) 2025-10-17 01:51:09 +00:00
Osvaldo OrtegaandCopilot 106ee0e628 Chat sessions URI handler (#1380)
* Chat sessions URI handler

* Type change

* Update src/extension/chatSessions/vscode/chatSessionsUriHandler.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update src/extension/chatSessions/vscode/chatSessionsUriHandler.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-10-16 22:13:54 +00:00
Osvaldo Ortega afa792a047 Moving copilot coding agent chat participant (#1360) 2025-10-16 02:53:41 +00:00
Osvaldo OrtegaandPeng Lyu 89d912cc71 Copilot cloud agents provider (#1333)
* Copilot cloud agents provider

* Missing file

---------

Co-authored-by: Peng Lyu <penn.lv@gmail.com>
2025-10-15 02:34:25 +00:00
Tyler James Leonhardt 96acf151f8 Fix response handling in GHRepoService and add types to prevent future issues (#951)
ref https://github.com/microsoft/vscode/issues/265287
2025-09-08 18:42:30 +00:00
Alex Ross 3cecb29803 Add REST rate limit logging (#814) 2025-08-28 16:26:13 +00:00
kieferrmandcopilot-swe-agent[bot] 333d9a4053 Hello Copilot
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
2025-06-27 11:35:20 +02:00