mirror of
https://github.com/harivansh-afk/sandbox-agent.git
synced 2026-04-15 18:01:30 +00:00
The spawn_streaming() function was not passing environment variables from SpawnOptions.env to the spawned process. This caused agents like Claude to not receive ANTHROPIC_API_KEY, resulting in silent authentication failures. The non-streaming spawn() method correctly passes env vars (lines 298-300), but spawn_streaming() was missing this code path. This fix adds the same env var loop to spawn_streaming(), ensuring that credentials extracted from the host environment are properly passed to spawned agents. |
||
|---|---|---|
| .. | ||
| src | ||
| Cargo.toml | ||