Skip to content

Update GitHub Copilot CLI to version 1.0.56#319076

Open
DonJayamanne wants to merge 6 commits into
mainfrom
don/update-copilot-cli
Open

Update GitHub Copilot CLI to version 1.0.56#319076
DonJayamanne wants to merge 6 commits into
mainfrom
don/update-copilot-cli

Conversation

@DonJayamanne
Copy link
Copy Markdown
Contributor

Enhance CLI session handling and improve token management. Update the GitHub Copilot dependency to the latest version, refactor session management, and add tests for new functionalities. Ensure compatibility with the updated SDK and improve type definitions for clarity.

Copilot AI review requested due to automatic review settings May 30, 2026 00:17
@DonJayamanne DonJayamanne self-assigned this May 30, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the built-in Copilot extension’s bundled Copilot CLI SDK to @github/copilot@1.0.56-1, aligning VS Code’s Copilot CLI session integration with updated SDK APIs (session/options updates, permissions API shape, and session manager hooks), and refreshes tests/packaging checks for the SDK’s changed native binary set.

Changes:

  • Bump @github/copilot dependency to 1.0.56-1 and adjust lockfile entries (including new transitive deps).
  • Refactor Copilot CLI session wiring to use new SDK APIs (updateOptions, permissions.setRequired, loadDeferredRepoHooks(sessionId)), and centralize session typing via a shared common/utils type alias.
  • Update packaging/runtime checks and tests to account for new native binaries (e.g. cli-native.node) and revised auth-info resolution.
Show a summary per file
File Description
extensions/copilot/src/extension/chatSessions/copilotcli/vscode-node/test/copilotCLISDKUpgrade.spec.ts Updates native-binary allowlist to reflect SDK prebuild changes (incl. cli-native.node, mxc additions).
extensions/copilot/src/extension/chatSessions/copilotcli/node/test/testHelpers.ts Updates test mocks for new session APIs (permissions/updateOptions) (currently needs fixes).
extensions/copilot/src/extension/chatSessions/copilotcli/node/test/exitPlanModeHandler.spec.ts Updates tests to use the new shared Session type alias.
extensions/copilot/src/extension/chatSessions/copilotcli/node/test/copilotcliSession.spec.ts Updates session tests for updated session typing/options APIs.
extensions/copilot/src/extension/chatSessions/copilotcli/node/test/copilotCliAuth.spec.ts Adapts auth tests to new SDK auth resolution helper and ensures extensionPath is available.
extensions/copilot/src/extension/chatSessions/copilotcli/node/permissionHelpers.ts Rebinds permission result typing to the new shared Session type alias.
extensions/copilot/src/extension/chatSessions/copilotcli/node/mcpHandler.ts Switches to shared Session type alias for MCP config typing.
extensions/copilot/src/extension/chatSessions/copilotcli/node/exitPlanModeHandler.ts Switches to shared Session type alias for plan-mode handling types.
extensions/copilot/src/extension/chatSessions/copilotcli/node/copilotcliSessionService.ts Refactors session creation/rehydration to updated SDK hooks/options/permissions API.
extensions/copilot/src/extension/chatSessions/copilotcli/node/copilotcliSession.ts Uses updateOptions({ authInfo }) instead of deprecated auth setters.
extensions/copilot/src/extension/chatSessions/copilotcli/node/copilotCli.ts Improves token authInfo handling by deferring to SDK’s token→authInfo resolver when available.
extensions/copilot/src/extension/chatSessions/copilotcli/common/utils.ts Introduces shared Session/LocalSession type aliases based on SDK internal session manager typing.
extensions/copilot/script/postinstall.ts Ensures cli-native.node is included when copying relevant prebuild binaries.
extensions/copilot/package.json Bumps @github/copilot dependency version.
extensions/copilot/package-lock.json Locks upgraded Copilot package artifacts and new transitive dependency metadata.

Copilot's findings

Files not reviewed (1)
  • extensions/copilot/package-lock.json: Language not supported
  • Files reviewed: 14/15 changed files
  • Comments generated: 10

@DonJayamanne DonJayamanne changed the title Update GitHub Copilot CLI to version 1.0.56-1 Update GitHub Copilot CLI to version 1.0.56 May 30, 2026
@DonJayamanne DonJayamanne marked this pull request as ready for review May 30, 2026 00:40
…ssion handling

- Updated @github/copilot dependency in package.json and package-lock.json to version 1.0.54.
- Modified postinstall script to include 'cli-native.node' in the file copy process.
- Refactored session management to utilize updated SDK methods for setting authentication info and permissions.
- Improved type definitions and imports for better clarity and maintainability.
- Added tests to ensure new functionality and compatibility with updated SDK.
@DonJayamanne DonJayamanne force-pushed the don/update-copilot-cli branch from ec2113e to 56540ab Compare June 1, 2026 00:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants