Improve comment explaining tunnel agent usage for proxy scenarios

Co-authored-by: tommoor <380914+tommoor@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-01-16 00:17:51 +00:00
parent 52de8f9588
commit 554f42cb4f
+4 -1
View File
@@ -199,7 +199,10 @@ function buildAgent(
});
if (parsedProxyURL.tunnelMethod?.startsWith("httpOver")) {
// Use tunnel agent for HTTP-over-HTTP/HTTPS proxy scenarios
// Use tunnel agent for HTTP-over-HTTP/HTTPS proxy scenarios.
// Tunnel agents properly handle protocol differences and proxy authentication
// without requiring URL manipulation, unlike useFilteringAgent which would
// fail with protocol validation errors if passed a modified proxy URL.
agent = buildTunnel(parsedProxyURL, agentOptions);
} else {
// Note request filtering agent does not support https tunneling via a proxy