Repository navigation
Commit cbf2ae1
fix(agent): pass proxy and TLS trust env into MCP tool subprocesses
buzz-agent env_clear()s the environment of each MCP child, and the passthrough
allowlist carried no proxy or TLS-trust variables. On a host whose only route
out is a CONNECT proxy this does not degrade the tools, it blinds them: apt,
curl, pip and git connect directly instead, the egress firewall resets the
socket, and the agent reports "Connection reset by peer" and concludes the
environment has no network — indistinguishable in the transcript from a task
that is genuinely offline.
Add both spellings of the proxy vars (HTTP_PROXY/HTTPS_PROXY/NO_PROXY/ALL_PROXY
and lowercase) to PASSTHROUGH_ENV: curl and git read lowercase, most Go/Python
tooling reads uppercase, and libcurl deliberately ignores uppercase HTTP_PROXY,
so keeping only one form silently breaks half the toolchain. Also pass
SSL_CERT_FILE/SSL_CERT_DIR: a TLS-terminating proxy presents its own CA, and an
image whose trust store lacks it fails every https fetch with a verification
error — the same class of failure, the parent configured correctly and the
child unable to see it.
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Signed-off-by: Atish Patel <[email protected]>1 parent 5c5ef8c commit cbf2ae1
1 file changed
Lines changed: 60 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
55 | 80 | | |
56 | 81 | | |
57 | 82 | | |
| |||
1015 | 1040 | | |
1016 | 1041 | | |
1017 | 1042 | | |
| 1043 | + | |
| 1044 | + | |
| 1045 | + | |
| 1046 | + | |
| 1047 | + | |
| 1048 | + | |
| 1049 | + | |
| 1050 | + | |
| 1051 | + | |
| 1052 | + | |
| 1053 | + | |
| 1054 | + | |
| 1055 | + | |
| 1056 | + | |
| 1057 | + | |
| 1058 | + | |
| 1059 | + | |
| 1060 | + | |
| 1061 | + | |
| 1062 | + | |
| 1063 | + | |
| 1064 | + | |
| 1065 | + | |
| 1066 | + | |
| 1067 | + | |
| 1068 | + | |
| 1069 | + | |
| 1070 | + | |
| 1071 | + | |
| 1072 | + | |
| 1073 | + | |
| 1074 | + | |
| 1075 | + | |
| 1076 | + | |
| 1077 | + | |
1018 | 1078 | | |
1019 | 1079 | | |
1020 | 1080 | | |
| |||
0 commit comments