Repository navigation
Update Copilot SDK to 1.0.27-preview.1 to prevent runtime exit crashes - #23066
Merged
Merged
Conversation
Use the upstream renderer timer fix and retain a bundled regression test for runtime exit with browser timer handles. Co-authored-by: Copilot App <[email protected]> Copilot-Session: 3c4467ed-9128-4889-956e-cdc302e49b85
Contributor
There was a problem hiding this comment.
🔵 Needs a closer look
The prerelease replaces bundled native runtimes, requiring human confirmation of cross-platform behavior beyond the mocked renderer regression test.
No open issues 🎉
What changed in this PR
This PR updates GitHub Desktop’s Copilot SDK to prevent runtime-exit crashes caused by numeric timer handles in Electron renderers.
Changes:
- Pins
@github/copilot-sdkand its platform packages to1.0.27-preview.1, which includes the upstream timer fix. - Adds a renderer-bundled regression test that checks runtime-exit cleanup with browser-style timers, without changing Desktop’s timer behavior.
| File | Description |
|---|---|
script/webpack-copilot-timers-test.ts |
Tests SDK runtime-exit cleanup with numeric timer handles. |
app/yarn.lock |
Locks the SDK and platform packages to the prerelease version. |
app/package.json |
Pins the SDK dependency to 1.0.27-preview.1. |
Review effort: Balanced
BagToad
approved these changes
Oct 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Addresses microsoft/copilot-sdk#2863 and Sentry issue 7807643619.
Description
@github/copilot-sdkfrom 1.0.25 to exactly 1.0.27-preview.1, including its platform packages. This prerelease bundles Copilot CLI 1.0.104-1.exitFallback.unref?.(). Electron renderer timers return numeric handles, so the previous unconditional call could throw an uncaught exception and crash Desktop. Sentry recorded 49 events from 7 users in the first three hours after Desktop 3.6.8 shipped.Validation:
yarn test script/webpack-copilot-timers-test.ts— passed (1 test). Before the upstream fix, this reproduction failed withTypeError: exitFallback.unref is not a function.yarn test:script— passed (30 tests).yarn compile:prod— passed.yarn lint:fix— passed.yarn test— 2,279 passed, 6 failed, 2 skipped. The same six Git-related tests failed before this SDK bump: submodule checkout, three local-remote push cases, bare-repository detection, and parsing pull errors. The last reportscannot pull with rebase: You have unstaged changes. These failures remain unresolved; this PR does not change their implementation.git diff --check— passed before commit.Screenshots
Not applicable; no UI changes.
Release notes
Notes: Prevent crashes when the Copilot runtime exits.