Skip to content

Add .tar.bz2 archive support for ACP agent server downloads#52188

Merged
benbrandt merged 2 commits intozed-industries:mainfrom
vincenzopalazzo:claude/affectionate-ishizaka
Mar 25, 2026
Merged

Add .tar.bz2 archive support for ACP agent server downloads#52188
benbrandt merged 2 commits intozed-industries:mainfrom
vincenzopalazzo:claude/affectionate-ishizaka

Conversation

@vincenzopalazzo
Copy link
Copy Markdown
Contributor

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: block/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.

@cla-bot
Copy link
Copy Markdown

cla-bot bot commented Mar 23, 2026

We require contributors to sign our Contributor License Agreement, and we don't have @vincenzopalazzo on file. You can sign our CLA at https://zed.dev/cla. Once you've signed, post a comment here that says '@cla-bot check'.

@zed-community-bot zed-community-bot bot added the first contribution the author's first pull request to Zed. NOTE: the label application is automated via github actions label Mar 23, 2026
@zed-codeowner-coordinator zed-codeowner-coordinator bot requested review from a team, as-cii and kubkon and removed request for a team March 23, 2026 11:08
@vincenzopalazzo
Copy link
Copy Markdown
Contributor Author

@cla-bot check

@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Mar 23, 2026
@cla-bot
Copy link
Copy Markdown

cla-bot bot commented Mar 23, 2026

The cla-bot has been summoned, and re-checked this pull request!

@zed-industries-bot
Copy link
Copy Markdown
Contributor

zed-industries-bot commented Mar 23, 2026

Messages
📖

This PR includes links to the following GitHub Issues: #block/goose#8047
If this PR aims to close an issue, please include a Closes #ISSUE line at the top of the PR body.

Generated by 🚫 dangerJS against 4b56b14

The ACP registry schema allows .tar.bz2 archives, but Zed only
supported .zip, .tar.gz, and .tgz. When a registry entry (like Goose)
only ships .tar.bz2, Zed would bail with "unsupported archive type".

This adds a TarBz2 variant to AssetKind and implements extraction using
the bzip2 feature of async-compression (already a workspace dependency).
@vincenzopalazzo vincenzopalazzo force-pushed the claude/affectionate-ishizaka branch from 227a9eb to 1c7d7a1 Compare March 23, 2026 11:19
@SomeoneToIgnore SomeoneToIgnore added the area:ai Improvement related to Agent Panel, Edit Prediction, Copilot, or other AI features label Mar 23, 2026
Copy link
Copy Markdown
Member

@kubkon kubkon left a comment

Choose a reason for hiding this comment

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

Looks great, thank you!

@kubkon kubkon enabled auto-merge (squash) March 25, 2026 06:35
@kubkon kubkon disabled auto-merge March 25, 2026 06:39
@benbrandt benbrandt enabled auto-merge (squash) March 25, 2026 07:41
@benbrandt benbrandt disabled auto-merge March 25, 2026 07:45
@benbrandt benbrandt enabled auto-merge (squash) March 25, 2026 07:45
@benbrandt benbrandt merged commit 3d5ec54 into zed-industries:main Mar 25, 2026
31 checks passed
@vincenzopalazzo vincenzopalazzo deleted the claude/affectionate-ishizaka branch March 25, 2026 09:42
@benbrandt
Copy link
Copy Markdown
Member

/cherry-pick preview

github-actions bot pushed a commit that referenced this pull request Mar 25, 2026
## 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: block/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]>
zed-zippy bot added a commit that referenced this pull request Mar 25, 2026
…(cherry-pick to preview) (#52412)

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: block/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]>

Co-authored-by: Vincenzo Palazzo <[email protected]>
Co-authored-by: Ben Brandt <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:ai Improvement related to Agent Panel, Edit Prediction, Copilot, or other AI features cla-signed The user has signed the Contributor License Agreement first contribution the author's first pull request to Zed. NOTE: the label application is automated via github actions Size S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants