Add .tar.bz2 archive support for ACP agent server downloads (#52188) (cherry-pick to preview)#52412
Merged
zed-zippy[bot] merged 1 commit intov0.229.xfrom Mar 25, 2026
Merged
Conversation
## Summary - Added `TarBz2` variant to `AssetKind` enum for `.tar.bz2` / `.tbz2` archives - Implemented `extract_tar_bz2` using the `bzip2` feature of `async-compression` (already a workspace dependency, just enabled the feature flag) - Wired up both streaming and file-based extraction paths in `github_download.rs` - Added `.tar.bz2` / `.tbz2` URL detection in both `LocalExtensionArchiveAgent` and `LocalRegistryArchiveAgent` This unblocks ACP registry entries (like Goose) that only ship `.tar.bz2` archives. Reference: aaif-goose/goose#8047 ## Test plan - [ ] Verify `cargo check` and `clippy` pass (confirmed locally) - [ ] Test downloading an ACP agent that ships a `.tar.bz2` archive (e.g., Goose) - [ ] Verify existing `.tar.gz` and `.zip` agent downloads still work Release Notes: - Added support for `.tar.bz2` archives in ACP agent server downloads, unblocking registry entries like Goose that only ship bzip2-compressed tarballs. --------- Co-authored-by: Ben Brandt <[email protected]>
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.
Cherry-pick of #52188 to preview
Summary
TarBz2variant toAssetKindenum for.tar.bz2/.tbz2archives
extract_tar_bz2using thebzip2feature ofasync-compression(already a workspace dependency, just enabled thefeature flag)
github_download.rs.tar.bz2/.tbz2URL detection in bothLocalExtensionArchiveAgentandLocalRegistryArchiveAgentThis unblocks ACP registry entries (like Goose) that only ship
.tar.bz2archives.Reference: aaif-goose/goose#8047
Test plan
cargo checkandclippypass (confirmed locally).tar.bz2archive(e.g., Goose)
.tar.gzand.zipagent downloads still workRelease Notes:
.tar.bz2archives in ACP agent server downloads,unblocking registry entries like Goose that only ship bzip2-compressed
tarballs.
Co-authored-by: Ben Brandt [email protected]