Make bun install work in the GitHub Copilot Agent sandbox#399
Closed
Make bun install work in the GitHub Copilot Agent sandbox#399
Conversation
|
Copilot
AI
changed the title
[WIP] Test sandbox setup
Sandbox environment test: bun install + linter verification
Mar 13, 2026
…ctions Co-authored-by: theoephraim <1158956+theoephraim@users.noreply.github.com>
Copilot
AI
changed the title
Sandbox environment test: bun install + linter verification
Make bun install work in the GitHub Copilot Agent sandbox
Mar 13, 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.
The sandbox MITM proxy (
padawan-fw) corrupts Brotli-encoded npm registry responses — truncating compressed bodies at ~4KB/50KB boundaries while preservingContent-Encoding: br, causing bun to fail withHTTPError downloading package manifest,Unterminated string literal, and segfaults.Changes
scripts/sandbox-npm-proxy.py— threaded local HTTP proxy on127.0.0.1:4873that re-fetches npm packages withAccept-Encoding: gzip, deflate(no Brotli), decompresses, and returns plain responses to bun. Bypasses the MITM proxy's Brotli corruption entirely.AGENTS.md— documents the full sandbox workflow:--frozen-lockfileis required so bun resolvescatalog:version references from the existingbun.lockrather than re-resolving from the registry (which would fail immediately).Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
http://registry.npmjs.org:80/is-string/home/REDACTED/.bun/bin/bun bun install(http block)registry.npmmirror.com/home/REDACTED/.bun/bin/bun bun install --registry REDACTED(dns block)If you need me to access, download, or install something from one of these locations, you can either:
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.