Skip to content

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
cherry-pick-v0.229.x-3d5ec540
Mar 25, 2026
Merged

Add .tar.bz2 archive support for ACP agent server downloads (#52188) (cherry-pick to preview)#52412
zed-zippy[bot] merged 1 commit intov0.229.xfrom
cherry-pick-v0.229.x-3d5ec540

Conversation

@zed-zippy
Copy link
Copy Markdown
Contributor

@zed-zippy zed-zippy bot commented Mar 25, 2026

Cherry-pick of #52188 to preview


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]

## 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]>
@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Mar 25, 2026
@zed-community-bot zed-community-bot bot added the bot Pull requests authored by a bot label Mar 25, 2026
@zed-codeowner-coordinator zed-codeowner-coordinator bot requested review from a team, as-cii and kubkon and removed request for a team March 25, 2026 13:51
@zed-zippy zed-zippy bot merged commit 44ee6a3 into v0.229.x Mar 25, 2026
41 checks passed
@zed-zippy zed-zippy bot deleted the cherry-pick-v0.229.x-3d5ec540 branch March 25, 2026 14:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bot Pull requests authored by a bot cla-signed The user has signed the Contributor License Agreement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants