fix(cli): include IPv6 loopback in NO_PROXY#3486
Conversation
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
📝 WalkthroughWalkthroughThe PR extends withLocalNoProxy() to inject IPv6 loopback ( ChangesLocal proxy bypass expansion
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Tip 💬 Introducing Slack Agent: The best way for teams to turn conversations into code.Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.
Built for teams:
One agent for your entire SDLC. Right inside Slack. Comment |
There was a problem hiding this comment.
Pull request overview
This PR updates NemoClaw’s subprocess environment construction to ensure local traffic is not accidentally routed through forwarded HTTP(S) proxies when tools target IPv6 loopback or wildcard bind addresses.
Changes:
- Extended
withLocalNoProxy()to append::1and0.0.0.0(in addition tolocalhostand127.0.0.1) to bothNO_PROXYandno_proxywhen a proxy is present. - Kept the mirrored CLI and plugin
subprocess-env.tsimplementations in sync. - Updated and added tests to cover the expanded bypass list and enforce CLI/plugin parity.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
src/lib/subprocess-env.ts |
Expands local-host entries injected into NO_PROXY/no_proxy when proxy vars are present. |
nemoclaw/src/lib/subprocess-env.ts |
Mirrors the same withLocalNoProxy() behavior for the plugin package. |
src/lib/subprocess-env.test.ts |
Updates expectations to include ::1 and 0.0.0.0 for both direct helper and builder injection tests. |
test/credential-exposure.test.ts |
Adds a regression test asserting CLI/plugin withLocalNoProxy() produce identical NO_PROXY/no_proxy results. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
d6261e0 to
d74cf48
Compare
bd40181 to
9c77fbd
Compare
|
✨ Thanks for submitting this detailed PR to fix the subprocess environment handling issue with IPv6 loopback in NO_PROXY. This change aims to improve the reliability of the NemoClaw CLI by ensuring local traffic is not accidentally routed through a forwarded proxy when tools target IPv6 loopback. Related open issues: |
5e204b4 to
6cb54d2
Compare
|
@ericksoa @jyaunches Would love i review on it! |
6cb54d2 to
042ea4a
Compare
|
@cv need a review!🙌🏽 |
Signed-off-by: 1PoPTRoN <vrxn.arp1traj@gmail.com>
042ea4a to
a33e69c
Compare
Summary
This PR updates NemoClaw’s subprocess environment handling so local traffic is not accidentally routed through a forwarded proxy when tools target IPv6 loopback. The existing helper already protected
localhostand127.0.0.1; this extends the same behavior to::1and0.0.0.0in both mirrored subprocess environment helpers.Related Issue
Fixes #3485
Changes
::1and0.0.0.0to the local host list injected intoNO_PROXYandno_proxy.subprocess-env.tsin sync.Type of Change
Verification
Focused verification run:
The focused regression tests passed locally:
Summary by CodeRabbit
Bug Fixes
Tests
Documentation
Signed-off-by: 1PoPTRoN vrxn.arp1traj@gmail.com