Skip to content

chore: bump @github/copilot-sdk to 1.0.7-preview.3#326106

Closed
vs-code-engineering[bot] wants to merge 2 commits into
mainfrom
automation/bump-copilot-sdk-1.0.7-preview.3
Closed

chore: bump @github/copilot-sdk to 1.0.7-preview.3#326106
vs-code-engineering[bot] wants to merge 2 commits into
mainfrom
automation/bump-copilot-sdk-1.0.7-preview.3

Conversation

@vs-code-engineering

@vs-code-engineering vs-code-engineering Bot commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

Automated bump of @github/copilot-sdk to the latest signed version.

  • @github/copilot-sdk: ^1.0.7-preview.0^1.0.7-preview.3
  • @github/copilot: ^1.0.70-0^1.0.71-2
  • Base: main @ 53e335d0387969ba6b6bd68f2481be89252089ca
  • Opened by workflow run

Draft until validation passes. The sdk-vscode-bump-fix agent will prime packaging changes from the canary insights and iterate on failures.

Each product build triggered for this PR is posted as a comment below with a link.



🤖 SDK bump fix status — cycle 1

Validating: @github/copilot-sdk@1.0.7-preview.3 · @github/copilot@1.0.71-2 · base main

Product-build state: cycle 1 build (ADO 456293) failed. Fix pushed — build will be re-dispatched automatically (→ cycle 2).

What changed this cycle

  • build/lib/copilot.ts — new getKoffiExcludeFilter + ensureKoffiPlatformPackage helpers (mirroring the existing ripgrep/copilot platform handling).
  • build/gulpfile.vscode.ts / build/gulpfile.reh.ts — wired the ensure call + exclude filter into app and REH packaging.
  • build/lib/test/copilot.test.ts — coverage for the new koffi filter.

Why (root cause)
This bump pulls in koffi@3.1.1 transitively via @github/copilot-sdk (new — koffi was absent on main). koffi 3.x ships its native addon through per-platform @koromix/koffi-<platform> optional packages (15 of them: darwin/linux/win32 + freebsd/openbsd/ia32/loong64/riscv64). There was no packaging handling for these, so:

  • npm installs only the host's koffi package on the build host → the target package is missing for cross-builds (e.g. win32/darwin on a linux host).
  • wrong-platform koffi.node files would ship and break per-platform codesign (win32 signs all *.node) / bloat the payload.

The fix keeps only the build target's @koromix/koffi-<platform> (materializing it from the lockfile when npm didn't install it) and strips the rest.

SDK + CLI correlation
The Slack version-thread insights for this SDK base (1.0.7-canary.*) are all CLI auto/inferred, i.e. a different CLI than this bump's pinned @github/copilot@1.0.71-2 — so their CLI-attributed native-payload verdicts are treated as hypotheses only. The koffi packaging gap, however, is SDK-attributed (koffi is a @github/copilot-sdk dependency, CLI-independent), so it applies regardless of the CLI mismatch and matches the investigator's suggested action ("strip wrong-arch koffi in build/lib/copilot.ts"). The authoritative confirmation is the next def-111 product build against this exact SDK+CLI.

No version pins or lockfiles were touched (Stage A owns those).

Generated by sdk-vscode-bump-fix · 2.1K AIC · ⌖ 37.7 AIC · ⊞ 61.8K ·

Copilot AI review requested due to automatic review settings July 16, 2026 06:08
@vs-code-engineering vs-code-engineering Bot added the copilot-sdk-auto-upgrade Automated @github/copilot-sdk version-bump PR label Jul 16, 2026
@vs-code-engineering vs-code-engineering Bot requested a review from pwang347 July 16, 2026 06:08

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.

Copilot can't review bot-authored pull requests automatically. A user with Copilot access can request a review manually.

@vs-code-engineering

Copy link
Copy Markdown
Contributor Author

🏗️ Product build queued for cycle 1: https://dev.azure.com/monacotools/Monaco/_build/results?buildId=456293 — validating the PR branch…

@vs-code-engineering

Copy link
Copy Markdown
Contributor Author

Product build against the PR branch — cycle 1: failed

koffi 3.x (pulled in transitively by @github/copilot-sdk 1.0.7-preview.3)
delivers its native addon via per-platform @koromix/koffi-<platform> optional
packages. Add packaging handling that keeps only the build target's koffi
package and materializes it for cross-builds.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@vs-code-engineering

Copy link
Copy Markdown
Contributor Author

Commit pushed: 1528e64

Generated by sdk-vscode-bump-fix · 2.1K AIC · ⌖ 37.7 AIC · ⊞ 61.8K

@vs-code-engineering

Copy link
Copy Markdown
Contributor Author

🏗️ Product build queued for cycle 2: https://dev.azure.com/monacotools/Monaco/_build/results?buildId=456297 — validating the PR branch…

@vs-code-engineering

Copy link
Copy Markdown
Contributor Author

Product build against the PR branch — cycle 2: failed

@pwang347 pwang347 closed this Jul 16, 2026
@pwang347 pwang347 deleted the automation/bump-copilot-sdk-1.0.7-preview.3 branch July 16, 2026 17:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

copilot-sdk-auto-upgrade Automated @github/copilot-sdk version-bump PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants