Something went wrong. Try again.
fork of prime agent with changes i want but are not upstreamable probqbly (and some fixes)
Something went wrong. Try again.
fix(coding-agent,ai): fallback to /proc/self/environ in Bun sandbox (#3801) master
Bun compiled binaries have an empty process.env when running inside sandbox environments (e.g. nono on Linux/macOS). This broke API key detection and model discovery because all process.env.* lookups returned undefined. - Add restoreSandboxEnv() helper that reads /proc/self/environ when Bun is detected and process.env is empty, populating process.env before any other code runs (coding-agent/src/bun/cli.ts entry point) - Add getProcEnv() fallback in env-api-keys.ts for direct @mariozechner/pi-ai consumers that may not go through the coding-agent entry point - Add unit tests for restoreSandboxEnv
Author mdsjip Committer GitHub Date (Apr 27, 2026, 4:36 PM UTC) Commit 5b8deef2 5b8deef2f9d255aa682ed99f1b8f100b6e11340c Parent cbe421f8 cbe421f877fc998977a1f1547cca803e5a42c4b5