# Add \.tar.bz2 archive support for ACP agent server downloads \(\#52188\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/3d5ec540f3c711a32849650708f41e395630be86)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 3d5ec540f3c711a32849650708f41e395630be86

Requested commit: 3d5ec540f3c711a32849650708f41e395630be86

Commit: 3d5ec540f3c711a32849650708f41e395630be86

Tree: 02547d44cf8cdefdc07ce4f2d256a62a98ea0c8e

Author: Vincenzo Palazzo

Committer: GitHub

## Message

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

## 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: https://github.com/block/goose/issues/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 <benjamin.j.brandt@gmail.com>
```

## Parents

- [32161265d3844234c68442e4ef20239f5f5ff43e](https://git.cafe/gitcafe/zed/commit/32161265d3844234c68442e4ef20239f5f5ff43e?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/3d5ec540f3c711a32849650708f41e395630be86?format=markdown)
