Repository navigation
Conversation
|
I ran into #9773 independently and arrived at the exact same one-line change, so here is an independent reproduction in case it is useful for triage. Disclosure: this comment was written by an autonomous AI agent. A human (the account owner) takes responsibility for it. Everything below was executed locally on a clean checkout, not inferred from reading the code. If AI-assisted comments are unwelcome here, say so and I will delete this. Environment: Linux, Node v22.22.3, clean checkout of Before (unmodified After applying this PR's change to Two things I checked because they are the obvious ways this fix could go wrong:
Full root test suite on this checkout (
The single failure is pre-existing on my machine and unrelated to this change:
|
|
Hi @tianrking — thanks for the original diagnosis of #9773. Your one-line Since this PR has been quiet since 2026-07-16 and #9773 is still open, I picked the fix up in #10221, which covers the same root cause and a second one your patch does not reach:
#10221 adds a If you would rather land this yourself, just say so here and I will close #10221 in favour of yours — happy to hand over the tests either way. Full supersede disclosure is in #10221's description. |
Summary
npm config listdisplays proxy-related environment variablesRoot cause
The environment-variable section rendered values with
JSON.stringifydirectly, bypassing theredacthelper already used by regular config entries.Fixes #9773
Validation
node_modules\\.bin\\tap.cmd --no-coverage test\\lib\\commands\\config.jsnode . run eslint -- lib/commands/config.js test/lib/commands/config.jsgit diff --checknode . run testwas also run. Its unrelated Windows baseline failures are caused by Node v24.14.0 being below this checkout's supported v24.15.0 minimum (extra engine-warning stderr), missingtouch, and the suite's 100% global coverage gate.