Skip to content

Update Copilot SDK to 1.0.27-preview.1 to prevent runtime exit crashes - #23066

Merged
tidy-dev merged 1 commit into
developmentfrom
tidy-dev-copilot-sdk-timer-crash
Oct 23, 2026
Merged

tidy-dev merged 1 commit into
developmentfrom
tidy-dev-copilot-sdk-timer-crash

Conversation

@tidy-dev

Copy link
Copy Markdown
Contributor

Addresses microsoft/copilot-sdk#2863 and Sentry issue 7807643619.

Description

Validation:

  • yarn test script/webpack-copilot-timers-test.ts — passed (1 test). Before the upstream fix, this reproduction failed with TypeError: 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 reports cannot 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.

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
@tidy-dev
tidy-dev requested a review from a team as a code owner October 23, 2026 22:41
@tidy-dev
tidy-dev requested review from niik and a balanced review from Copilot October 23, 2026 22:41

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🔵 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-sdk and its platform packages to 1.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

@tidy-dev
tidy-dev merged commit 0cb511b into development Oct 23, 2026
19 checks passed
@tidy-dev
tidy-dev deleted the tidy-dev-copilot-sdk-timer-crash branch October 23, 2026 23:16
Copilot AI mentioned this pull request Oct 26, 2026
3 tasks
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