* 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>
* 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>
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
* 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
* wire up multifilediff part
* check in src/extension/chatSessions/vscode-node/pullRequestFileChangesService.ts
* pass readOnly flag to ChatResponseMultiDiffPart