Commit Graph
58 Commits
Author SHA1 Message Date
Don JayamanneandGitHub 847d569028 chore: update @github/copilot and related dependencies to version 1.0.61 (#320868)
* chore: update @github/copilot and @github/copilot-sdk to version 1.0.61 and 1.0.1 respectively

- Bump @github/copilot from 1.0.60 to 1.0.61 in package.json and package-lock.json
- Update @github/copilot-sdk from 1.0.0 to 1.0.1 in package.json and package-lock.json
- Modify postinstall script to copy tgrep files instead of sharp files
- Update tests to include tgrep binaries
- Change model in e2e tests from 'claude-opus-4.7' to 'gpt-5-mini'

* fix: add libm.so.6(GLIBC_2.27)(64bit) to referenceGeneratedDepsByArch
2026-06-11 20:46:55 +10:00
Don JayamanneGitHubcopilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
d1e403ebbf Add archived state management and worktree sharing for chat sessions (#316561)
* Add archived state management and worktree sharing for chat sessions

- Introduced `archived` property in `ChatSessionMetadataFile` to track archived sessions.
- Updated `IChatSessionMetadataStore` interface to include methods for setting and getting archived state.
- Implemented logic in `ChatSessionMetadataStore` and `MockChatSessionMetadataStore` to handle archived sessions.
- Added `getBlockingSiblingSessionsForFolder` utility to identify sessions that share worktrees.
- Modified CLI chat session commands to respect archived state during session deletion and worktree cleanup.
- Updated tests to cover new functionality and ensure proper behavior of session management.

* Add worktree sharing edge-case unit tests

Co-authored-by: DonJayamanne <1948812+DonJayamanne@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
2026-05-14 22:21:16 -07:00
Ladislau SzomoruandGitHub 31d554803a Agents - improve state management for session operation (#315492) 2026-05-09 22:19:57 +00:00
Ladislau SzomoruandGitHub 6c4a7f8b6d Copilot - scaffold method to eagerly refresh changes cache (#315468)
* Agents - do not show "Mark as Done" while a git operation is in progress

* Copilot - scaffold method to eagerly refresh changes cache

* Fix tests
2026-05-09 19:16:52 +02:00
Ladislau SzomoruandGitHub 7d24158495 Initial implementation (#314957) 2026-05-07 14:24:47 +02:00
Don JayamanneGitHubcopilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
3b2b5e066d Update GitHub Copilot npm and permission handling (#313364)
* update github copilot npm and update permission handling to use 'approve-once' instead of 'approved'

* Updates

* Fix permissionHelpers tests: update 'approved' to 'approve-once' and fix conditional check

Agent-Logs-Url: https://github.com/microsoft/vscode/sessions/6e5d31b2-034c-4c94-8145-c6a5c7c9c81b

Co-authored-by: DonJayamanne <1948812+DonJayamanne@users.noreply.github.com>

* Add setPermissionsRequired to MockCliSdkSession test helper

Agent-Logs-Url: https://github.com/microsoft/vscode/sessions/25f015e8-12a6-41d3-84b5-26cc1ef86ea1

Co-authored-by: DonJayamanne <1948812+DonJayamanne@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
2026-04-29 19:07:15 -07:00
f5d02ffd6d Add event emitters for workspace folder and worktree changes (#312288)
* Add event emitters for workspace folder and worktree changes; improve cache management

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

* Update extensions/copilot/src/extension/chatSessions/common/chatSessionWorktreeService.ts

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

* Update extensions/copilot/src/extension/chatSessions/vscode-node/copilotCLIChatSessions.ts

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

* Enhance chat session item handling by eagerly including changes for refreshed sessions to improve UX

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

* Change defaults

* Fixes

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

---------

Co-authored-by: Copilot <copilot@github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-04-23 20:50:21 -07:00
Don JayamanneandGitHub c385fd3dde feat(copilot): enable lazy loading for chat session items and update related configurations (#312047)
* feat(copilot): enable lazy loading for chat session items and update related configurations

* updates
2026-04-23 06:34:22 +00:00
8c4616c5d4 feat(copilotcli): Perf impromvent by lazy loading chat session items (#311817)
* feat(copilotcli): add lazy loading for chat session items

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

* Update extensions/copilot/src/extension/chatSessions/vscode-node/copilotCLIChatSessions.ts

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

* Update extensions/copilot/package.nls.json

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

* Updates

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

---------

Co-authored-by: Copilot <copilot@github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-04-22 17:16:21 -07:00
bf8712457a use IPromptsService to provide customizations (#309873)
* use IPromptsService to provide customizations

* update

* update

* update

* update

* Update extensions/copilot/src/platform/promptFiles/test/common/mockPromptsService.ts

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

* update

* dispose MockPromptsService

* update

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-04-15 00:40:03 -07:00
Ladislau SzomoruandGitHub 43b1f4bd8b Agents - remove "Update Branch" command (#309375)
* Agents - remove "Update Branch" command

* Remove more code
2026-04-13 01:06:58 -07:00
Don JayamanneandGitHub c7fd971659 refactor: remove getSessionIdForWorkspaceFolder method and update clearWorkspaceChanges to handle both session IDs and folder URIs (#308644)
* refactor: remove getSessionIdForWorkspaceFolder method and update clearWorkspaceChanges to handle both session IDs and folder URIs

* Address comments
2026-04-09 11:19:33 +00:00
Don JayamanneandGitHub 0afa58dace feat(copilot): Updated the Copilot CLI options to support a model interface (#308418)
* feat(copilot): Updated the Copilot CLI optoins to support a model interface

* Fix tests
2026-04-07 21:43:05 -07:00
cc27248bda Update dependencies and improve session initialization in Copilot CLI (#4930)
* Update dependencies and improve session initialization in Copilot CLI

* Update package.json

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

* Update to 1.0.17

* Updates

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-04-05 15:37:26 +00:00
a7af848fb1 Update command handling in Copilot CLI with corresponding descriptions (#4927)
* Update command handling in Copilot CLI with corresponding descriptions

* Update src/extension/chatSessions/copilotcli/node/copilotcliSession.ts

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

* Update src/extension/chatSessions/copilotcli/node/copilotcliSession.ts

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

* Updates

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-04-02 01:29:39 +00:00
Don JayamanneandGitHub 464d963149 refactor: update session options to use consistent naming and structure across session management (#4878) 2026-03-31 19:56:32 +00:00
Don JayamanneandGitHub bfc7d31943 refactor(CopilotCLI): streamline chat history retrieval and clean up unused imports (#4860)
* refactor(CopilotCLI): streamline chat history retrieval and clean up unused imports

* Fix test failures
2026-03-31 09:23:30 +00:00
Don JayamanneandGitHub 5504188a37 Copilot CLI: Use type-only imports from '@github/copilot/sdk' (#4852) 2026-03-31 03:02:59 +00:00
Don JayamanneandGitHub 408faf1866 Copilot CLI: Remove CopilotCLISessionOptions (#4853)
* Copilot CLI Remove CopilotCLISessionOptions

* Updates
2026-03-31 03:02:30 +00:00
PaulandGitHub 41b7ef8514 Support dynamic prompt variables (#4742)
* wip

* fixes

* update

* update

* updates

* updates

* clean

* clean

* clean

* fix tests

* update

* fix test
2026-03-27 21:55:42 +00:00
b7e641a910 feat: Fix MCP server mapping integration in Copilot CLI sessions (#4709)
* feat: Fix MCP server mapping integration in Copilot CLI sessions

* Updates

* Updates

* Updates

---------

Co-authored-by: Raymond Zhao <7199958+rzhao271@users.noreply.github.com>
2026-03-27 03:48:35 +00:00
Don JayamanneandGitHub b32658f1ed Copilot CLI: Incremental updates for Controller API adoption (#4657)
* Copilot CLI: Incremental updates for Controller API adoption

* updaets

* Updates

* Updates

* Skip tests

* Run claude tests

* Restore more tests

* Updates

* Updates

* Updates

* Updates

* updates
2026-03-25 17:59:39 +00:00
c2384c79d4 feat: Enhance ChatSessionMetadataStore with request details management (#4487)
* feat: Enhance ChatSessionMetadataStore with request details management

* Potential fix for pull request finding

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

* Updates

* Potential fix for pull request finding

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

* Updates

* Fixes

---------

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
2026-03-18 14:50:57 +00:00
effab7e589 More updates to Copilot CLI to use Controller API (#4368)
* More updates to Copilot CLI to use Controller API

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

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

* Updates

* fixes

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-03-12 04:43:03 +00:00
Don JayamanneandGitHub eab9152c45 Copilot CLI Plan exit approval (#4315)
* Copilot CLI Plan exit approval

* skip test
2026-03-10 11:12:49 +00:00
da009e049a Refactor CopilotCLIPromptResolver for multi-workspace support (#4294)
* Refactor CopilotCLIPromptResolver to support multi-workspace handling and update related tests

* Updates

* Update src/extension/chatSessions/copilotcli/node/copilotcliPromptResolver.ts

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

* Updates

* Updaets

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-03-09 13:12:08 +00:00
Don JayamanneandGitHub 24c0c3dbce Update github copilot npm (#4274)
* Update github copilot extension

* Update tool calls

* Updates
2026-03-08 06:10:16 +00:00
Don JayamanneandGitHub 79d6023696 Refactor workingDirectory, isolationEnabled and worktreeProperties and collapse into an existing single type (#4276)
* Refactor Copilot CLI session handling to utilize workspace information

- Introduced IWorkspaceInfo interface to encapsulate workspace-related data.
- Updated session creation and retrieval methods to accept workspaceInfo instead of individual parameters.
- Refactored tests to align with the new workspaceInfo structure.
- Enhanced session management by ensuring consistent handling of working directories and isolation settings.
- Improved prompt resolution by passing workspaceInfo to relevant methods.

* Updates

* Refactor CopilotCLISessionOptions to remove workingDirectory property and streamline working directory retrieval

* Fixes
2026-03-07 12:33:47 +00:00
Don JayamanneandGitHub c1c606c16d Merge agents and chatsession folder (#4058) 2026-02-27 23:06:09 +00:00
Don JayamanneandGitHub ec5cdffed5 Refactor askUserQuestion method to remove unused stream parameter (#3925)
* Refactor askUserQuestion method to remove unused stream parameter across multiple files

* Updates

* Fix compilation issues after merging main

* Remove unused type
2026-02-24 18:01:07 +00:00
0a57b962d2 Upgrade to latest version of github copilot npm (#3923)
* Upgrade to latest version of github copilot npm

* Apply suggestion from @Copilot

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

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-02-23 01:50:22 +00:00
Don JayamanneandGitHub 58151ec8fe Adopt the latest github copilot npm (#3786)
* Adopt the latest github copilot npm

* Updates

* Updates

* Updates

* Updates

* Fixes

* Fixes

* Fixes

* Fixes

* Updates to the tests

* Fix tests
2026-02-19 08:46:17 +00:00
Don JayamanneandGitHub 242fffd027 Update background handling of update_todo tool (#3845) 2026-02-19 05:51:20 +00:00
Don JayamanneandGitHub b7ebca4bfb Add authorization checks in Background agents (#3705)
* Add authorization checks in Background agents

* fix tests

* Fixes

* Fixes with tests

* Updates

* Fix tests
2026-02-17 23:59:44 +00:00
Don JayamanneandGitHub d316210e87 Enhance Copilot CLI integration with built-in model picker (#3757)
* Use built-in model dropdown for background agents

* Fixes

* Support compact command in background agent

* Revert tests
2026-02-16 04:38:35 +00:00
Don JayamanneandGitHub 0e7329b0ac background agent stests to verify grep/glob tools (#3445)
* background agent stests to verify grep/glob tools

* Skip
2026-02-04 20:32:43 +00:00
68dd8b04dc Auto approve viewing of attached images (#3223)
* Trust images created by BG session

* Updates

* Updates to display name

* Update src/extension/prompts/node/agent/copilotCLIPrompt.tsx

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

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-01-28 06:46:30 +00:00
Don JayamanneandGitHub 44a6166c55 Update Copilot CLI stests to include mcp server (#3107) 2026-01-23 07:50:36 +00:00
dfaa4f6d5f Update Github Copilot to latest version (#2864)
* Update to latest version of Github Copilot CLI

* Use 0.0.381

* Reverts

* Update src/extension/agents/copilotcli/node/copilotcliSession.ts

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

* Updates

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-01-15 01:36:52 +00:00
Don JayamanneandGitHub d185680f57 Fix race conditions when running CLI stests (#2805) 2026-01-13 04:47:52 +00:00
Don JayamanneandGitHub 554a6adfaa Update CLI tests to test terminal commands (#2473)
* Use fs.mkdir with recursive option instead of IFileSystem.createDirectory to account for dir already existing

* Update CLI tests to test terminal commands

* Fixes

* Updates

* More fixes
2025-12-23 08:45:45 +00:00
Don JayamanneandGitHub c3083d8402 Give preference to paths in WorkTree (#2542)
* Give preference to paths in WorkTree as opposed to workspace

* fix tests
2025-12-11 22:55:49 +00:00
Matt BiernerandGitHub 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
Don JayamanneandGitHub e03ab5c0f8 Support image attachments in Copilot CLI (#2270)
* Support image attachments in Copilot CLI

* Fix tests
2025-11-30 05:23:51 +00:00
Don JayamanneandGitHub aa2b9761fb Exclude incorrect workspace chat ref vars for Copilot CLI (#2254) 2025-11-28 06:17:34 +00:00
009c68c9cf When delegating to Copilot CLI do not open chat editor (#2232)
* When delegating to Copilot CLI do not open chat editor

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

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

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

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

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

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

* Address code review

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-11-27 00:16:11 +00:00
Don JayamanneandGitHub 69064c944d Restore edits for background sessions (#2180) 2025-11-26 12:29:49 +00:00
Don JayamanneandGitHub 369b888d45 Support Custom Agents in Copilot CLI (#2200)
* Support Custom Agents in Copilot CLI

* address comments

* Updates

* skip stests
2025-11-26 05:17:45 +00:00
Don JayamanneandGitHub 14d8804d99 Move Copilot CLI working directory compulation into common layer and change to URI (#2197) 2025-11-25 23:26:34 +00:00
Don JayamanneandGitHub f9a5fd886a Attach untitled files to Copilot CLI (#2185) 2025-11-25 11:53:14 +00:00