Restore Rust dual-artifact CLI bundling - #2535
Merged
Merged
Conversation
Embed the full Copilot CLI separately from the managed runtime bundle so explicit callers receive the Node SEA while normal SDK resolution continues to use copilot-runtime. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
Copilot review overview
🔵 Needs a closer look
Cross-platform release packaging and extraction across eight artifact variants warrants final human validation.
Review tier: Balanced
Findings: None
What changed in this PR
Restores separate embedded CLI and runtime artifacts in the Rust SDK while preserving runtime resolution behavior.
Changes:
- Embeds and verifies distinct full-CLI and filtered runtime archives.
- Adds cache invalidation and cross-platform regression coverage.
- Updates platform snapshots and documentation.
| File | Description |
|---|---|
rust/build/in_process.rs |
Builds and verifies separate CLI/runtime payloads. |
rust/src/embeddedcli.rs |
Extracts each payload through its appropriate installer. |
rust/src/lib.rs |
Clarifies public installer behavior. |
rust/tests/cli_resolution_test.rs |
Tests artifact separation and CLI version probing. |
rust/scripts/snapshot-bundled-cli-version.sh |
Adds musl release checksums. |
rust/README.md |
Documents dual artifacts and eight platforms. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Sep 4, 2026
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Sep 4, 2026
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Sep 4, 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.
Summary
install_bundled_cli()install_bundled_runtime()and normalCliProgram::Resolveon the nativecopilot-runtimewrapper with adjacentruntime.nodeand required assetscopilotfilenamebundled-in-process, no-default-feature extraction, build caches, custom extraction directories, and all eight supported platform variants--binary-versioncontractFixes the Rust SDK regression introduced by #2463.
Validation
cargo +nightly-2026-04-14 fmt --all -- --config-path .rustfmt.nightly.toml --checkcargo clippy --all-targets --features test-support,bundled-in-process -- --no-deps -D warnings -D clippy::unwrap_used -D clippy::disallowed_macros -D clippy::await_holding_invalid_typecargo test --test cli_resolution_test— 7 passedcargo test --no-default-features --test cli_resolution_test— 8 passedcargo test --all-features --test cli_resolution_test— 7 passedSize impact
For Copilot CLI 1.0.83-5 on Darwin ARM64:
bundled-in-processCliProgram::Resolvestill extracts only the runtime bundle, while the SEA remains lazy behindinstall_bundled_cli()