Repository navigation
Conversation
|
Important Review skippedToo many files! This PR contains 588 files, which is 288 over the limit of 300. To get a review, reduce the PR to 300 files or fewer by splitting it into smaller PRs or changing its base branch. Usage-priced reviews support at most 500 files.
|
jatmn
left a comment
There was a problem hiding this comment.
PR Review: fix(env): move first-party variables to OPENCLAUDE_* namespace (#2589)
#2595
Head: 519fdad7dd32a81302eb920029fc63d21c7e519d · Base: 10b14987275fca42cc38522a3b763116d50ea7ed
Merge readiness
- Review required: GitHub reports
mergeStateStatus: BLOCKED/reviewDecision: REVIEW_REQUIRED(required review not satisfied yet). - Branch history: The PR branch carries older merge commits, but the three-dot diff against current
mainis the env-rename work (≈581 files, dominated byd9fb8adf); no extra unreleased integration blobs beyondmain(e.g. Runcrate matchesorigin/main). - CodeRabbit pre-merge: "Risk Surface Disclosed" warning — expand the PR body with an explicit risk-surface note (provider routing, managed settings env, OAuth/subprocess scrub, SDK env overrides) so automated policy checks pass. The Testing section is close but the bot asked for a dedicated disclosure block.
- Checks: All rolled-up PR checks succeeded on head
519fdad7at review time.
Findings
🟠 P1 — Standalone launcher scripts must install the env bridge before reading canonical names
📍 Where: scripts/provider-launch.ts (and the same pattern in any other maintainer script that reads OPENCLAUDE_* from process.env without importing envRebrandBootstrap).
💥 What fails: An operator runs bun run scripts/provider-launch.ts (or the packaged equivalent) with legacy shell variables such as CLAUDE_CODE_USE_OPENAI=1 or CLAUDE_CODE_SIMPLE=1. The script reads only OPENCLAUDE_* (for example OPENCLAUDE_PROFILE_GOAL, fast-path flags, and provider routing inside buildLaunchEnv / resolveActiveRouteIdFromEnv). Without the import-time bridge, legacy names never mirror into canonical names, so auto profile selection, credentials, and spawned openclaude children can follow the wrong provider or fail credential checks.
🔎 Root cause: Entrypoints covered by envRebrand.test.ts import envRebrandBootstrap, but provider-launch.ts does not, while this PR retargeted the script to canonical names.
📜 Stated contract:
"legacy names are accepted from shell env, settings env, provider env files, and SDK
envoverrides." (PR description)
🏷️ Attribution: PR-worsened — on main, the script consumed CLAUDE_CODE_* directly; the rename to OPENCLAUDE_* removed that implicit compatibility for this entry path.
📌 In this PR:
scripts/provider-launch.ts— no bootstrap; canonical reads andapplyFastFlagsonlyscripts/system-check.ts— already imports bootstrap (use as sibling pattern)
🔒 Unchanged on main: Core envRebrand helpers.
🔧 Required correction: Import envRebrandBootstrap before any other module that reads provider env (match system-check.ts), or apply applyLegacyEnvAliases on the launch env object before provider resolution. Add a launcher test that sets only a legacy provider flag and expects the same profile as the canonical flag.
🛠️ Author fix: Close the root cause on every maintainer script entry path in this PR that reads OPENCLAUDE_* from the shell without the bridge — not only provider-launch.ts if others match after grep.
🚫 Out of scope: Rewriting buildLaunchEnv or provider routing helpers.
🟡 P2 — canonicalizeEnvEntries must apply the same CLAUDE_CODE-over-CLAUDE rule as the shell bridge
📍 Where: src/utils/envRebrand.ts (canonicalizeEnvEntries); SDK callers src/entrypoints/sdk/query.ts, permissions.ts, v2.ts.
💥 What fails: SDK env override objects that contain both CLAUDE_* and CLAUDE_CODE_* aliases for the same canonical key (with no explicit OPENCLAUDE_* entry) keep whichever legacy pair appears first in the iterable, not the more specific CLAUDE_CODE_* value.
order CLAUDE_TMPDIR then CLAUDE_CODE_TMPDIR → OPENCLAUDE_TMPDIR = generic
order CLAUDE_CODE_TMPDIR then CLAUDE_TMPDIR → OPENCLAUDE_TMPDIR = code
🔎 Root cause: The legacy pass in canonicalizeEnvEntries is a single FIFO merge; it does not sort legacy aliases CODE-before-CLAUDE the way applyLegacyEnvAliases does.
📜 Stated contract:
Test
applyLegacyEnvAliases> "prefers CLAUDE_CODE_* over CLAUDE_* on a collision" (src/utils/envRebrand.test.ts).
🏷️ Attribution: PR-introduced — helper added in this PR for SDK overrides.
📌 In this PR:
src/utils/envRebrand.ts—canonicalizeEnvEntries- SDK merge sites that call it for
envoverrides
🔒 Unchanged on main: N/A (new helper).
🔧 Required correction: When merging legacy aliases in canonicalizeEnvEntries, apply the same CODE-then-CLAUDE priority (or merge legacy entries CODE-first before filling gaps). Add a regression test mirroring the applyLegacyEnvAliases collision case for SDK-shaped entry lists.
🛠️ Author fix: Fix the helper and add tests once; all SDK call sites inherit the fix.
🚫 Out of scope: Changing canonical-vs-legacy precedence when an explicit OPENCLAUDE_* key is present (already tested).
🟡 P2 — Subprocess scrub gate should honor the legacy scrub flag at the read site
📍 Where: src/utils/subprocessEnv.ts (subprocessEnv).
💥 What fails: Workflows or wrappers that still set CLAUDE_CODE_SUBPROCESS_ENV_SCRUB=1 (documented on main for claude-code-action) but do not run import-time bootstrap before the first subprocessEnv() call see scrubbing disabled, so children inherit secrets listed in GHA_SUBPROCESS_SCRUB (OAuth tokens, cloud keys, etc.).
🔎 Root cause: The gate was renamed to OPENCLAUDE_SUBPROCESS_ENV_SCRUB without an explicit legacy fallback at the read site. Bootstrap usually mirrors shell legacy names, but this PR already uses explicit legacy reads elsewhere (e.g. getDefaultMaxRetries).
📜 Stated contract:
"legacy names are accepted from shell env …" (PR description)
🏷️ Attribution: PR-worsened — main gated on CLAUDE_CODE_SUBPROCESS_ENV_SCRUB directly.
📌 In this PR:
src/utils/subprocessEnv.ts— gate readsrc/utils/subprocessEnv.test.ts— extend coverage
🔒 Unchanged on main: Scrub list contents (aside from added OPENCLAUDE_OAUTH_TOKEN).
🔧 Required correction: Treat scrub as enabled when either canonical or legacy scrub env is truthy (mirror the getDefaultMaxRetries pattern). Add a test with only CLAUDE_CODE_SUBPROCESS_ENV_SCRUB=1.
🛠️ Author fix: Implement the dual read and test in one pass.
🚫 Out of scope: Changing which secrets are scrubbed.
🟡 P2 — Managed-settings security UI must canonicalize legacy safe env keys before the allowlist check
📍 Where: src/components/ManagedSettingsSecurityDialog/utils.ts (extractDangerousSettings); src/utils/managedEnvConstants.ts (SAFE_ENV_VARS).
💥 What fails: A settings.json / project settings.env that still uses legacy safe keys (for example CLAUDE_CODE_USE_OPENAI=1) is flagged as "dangerous" in the security dialog because SAFE_ENV_VARS now lists only OPENCLAUDE_*, even though managedEnv.ts canonicalizes those keys on apply.
🔎 Root cause: The dialog checks raw setting keys against the renamed allowlist without running toCanonicalEnvName / canonicalizeEnvKeys.
📜 Stated contract:
"legacy names are accepted from … settings env" (PR description). On
main,CLAUDE_CODE_USE_OPENAIwas a safe allowlist member.
🏷️ Attribution: PR-introduced — allowlist rename without dialog update.
📌 In this PR:
src/components/ManagedSettingsSecurityDialog/utils.tssrc/utils/managedEnvConstants.ts(allowlist rename)
🔒 Unchanged on main: Threat model for genuinely unsafe vars.
🔧 Required correction: Map each settings env key through toCanonicalEnvName (or reuse canonicalizeEnvKeys) before SAFE_ENV_VARS.has. Add a dialog unit test with a legacy safe provider flag that must not be classified as dangerous.
🛠️ Author fix: Update the dialog helper and tests together.
🚫 Out of scope: Re-expanding the safe list to unrelated third-party secrets.
jatmn
left a comment
There was a problem hiding this comment.
I'm not ready to merge this until the items below are addressed.
Merge readiness
- Rebase required: GitHub reports
mergeable: CONFLICTING/mergeStateStatus: DIRTY. I rangit merge-treeand see changed in both onsrc/services/api/claude.lifecycle.test.tsandsrc/services/api/codexShim.test.tsvs currentorigin/main. Please rebase ontomain, resolve those env-fixture hunks, and re-run PR checks. - Review scope:
gh pr diffexceeded GitHub's 300-file limit, so I used a local base→head diff (merge_base10b14987275fca42cc38522a3b763116d50ea7ed, head01acb4fd118c9be6f59ac84cae6c8de5c0430370). CI on head was green when I reviewed. - What I ran:
bun test src/utils/envRebrand.test.ts src/utils/envFile.test.ts src/utils/subprocessEnv.test.ts— 73 pass. - Pre-existing (I'm not blocking on this):
src/utils/sandbox/sandbox-adapter.tsis unchanged on this diff. Extra config-homedenyWritestill keys only onCLAUDE_CONFIG_DIR; operators using onlyOPENCLAUDE_CONFIG_DIRhad the same sandbox coverage gap at merge-base. I won't count that as a defect introduced here; we can harden it here or in a follow-up.
Findings
🟠 P1 — Apply the same legacy collision precedence in canonicalizeEnvKeys as the rest of the bridge
📍 Where: src/utils/envRebrand.ts (canonicalizeEnvKeys); consumers src/utils/managedEnv.ts (filterSettingsEnv), src/utils/envFile.ts (loadEnvFile).
💥 What fails: When a settings or env-file object contains both legacy spellings that map to the same canonical key (e.g. CLAUDE_TMPDIR and CLAUDE_CODE_TMPDIR) and no explicit OPENCLAUDE_* value, the winner depends on object insertion order. CLAUDE_CODE_* may lose even though the module documents that CLAUDE_CODE_* wins on collisions.
🔎 Root cause: canonicalizeEnvEntries and applyLegacyEnvAliases apply CODE-before-CLAUDE priority; canonicalizeEnvKeys walks Object.entries into a flat legacy list and last-write wins.
📜 Stated contract:
Legacy aliases in
canonicalizeEnvEntriesfollow the same CLAUDE_CODE_-before-CLAUDE_ priority asapplyLegacyEnvAliases. Issue #2589 / this PR: legacy fallback must keep existing installations working during migration.
🏷️ Attribution: Introduced in this PR (envRebrand.ts is new). I reproduced with bun -e on head.
📌 In this PR:
canonicalizeEnvKeys— order-dependent collisionmanagedEnvsettings apply — usescanonicalizeEnvKeys- Provider/settings env files —
envFile.loadEnvFileusescanonicalizeEnvKeys - Tests — no regression case in
canonicalizeEnvKeysdescribe (unlikecanonicalizeEnvEntries)
🔧 Required correction: In canonicalizeEnvKeys, resolve legacy collisions with the same CODE-then-CLAUDE priority as applyLegacyEnvAliases (e.g. two-pass legacy collection). Add a regression test mirroring the existing canonicalizeEnvEntries collision cases.
🛠️ Author fix: Fix canonicalizeEnvKeys and add tests in envRebrand.test.ts; don't expand unrelated rename churn.
🟠 P1 — Canonicalize legacy keys when loading persisted provider profiles
📍 Where: src/utils/providerProfile.ts — readProfileFile, buildStartupEnvFromProfile, route-retarget guards on persisted.env.OPENCLAUDE_PROVIDER_ROUTE_ID.
💥 What fails: On-disk ~/.openclaude*.json profile files saved before this rename store CLAUDE_CODE_PROVIDER_ROUTE_ID and related CLAUDE_CODE_USE_* flags (merge-base used those names). Head reads only OPENCLAUDE_PROVIDER_ROUTE_ID / OPENCLAUDE_USE_* from persisted.env with no canonicalizeEnvKeys (or equivalent) after JSON parse. Route guards and startup env then behave as if no route was saved.
🔎 Root cause: Runtime rename without a persistence read-path bridge for profile JSON (unlike managedEnv / envFile, which call canonicalizeEnvKeys on apply).
📜 Stated contract:
This PR accepts legacy names from settings env and provider env files during migration; saved provider profiles are the same kind of persisted operator configuration.
🏷️ Attribution: Introduced / incomplete migration in this PR (providerProfile.ts is in the diff).
📌 In this PR:
readProfileFile/loadProfileFile— rawparsed.envbuildStartupEnvFromProfileand route-id guards —OPENCLAUDE_PROVIDER_ROUTE_IDonly- Tests —
legacy openai saved profilescases cover provider credential shape, not renamed env keys inenv
🔧 Required correction: Run canonicalizeEnvKeys (or shared helper) on profile env at load before consumers read fields. Add a regression test with a fixture profile containing CLAUDE_CODE_PROVIDER_ROUTE_ID (and at least one CLAUDE_CODE_USE_*) proving startup rebuild matches pre-rename behavior.
🛠️ Author fix: Close load + guard paths in one pass; optional one-time rewrite on save is fine but not sufficient alone.
🟡 P2 — Trust dialog must canonicalize legacy safe settings.env keys like managed-settings security UI
📍 Where: src/components/TrustDialog/utils.ts (hasDangerousEnvVars, getDangerousEnvVarsSources); contrast src/components/ManagedSettingsSecurityDialog/utils.ts (updated in this PR with toCanonicalEnvName).
💥 What fails: Project/local settings.env still contains allowlisted legacy keys (e.g. CLAUDE_CODE_USE_OPENAI=1). Managed settings apply treats them as safe after canonicalization; Trust dialog flags the file as having “dangerous env vars” because it checks raw keys against SAFE_ENV_VARS.
🔎 Root cause: This PR updated one security dialog sibling but not the Trust dialog path.
📜 Stated contract:
Same as the managed-settings dialog comment: canonicalize legacy keys before
SAFE_ENV_VARSso safe keys spelled the old way match the renamed allowlist.
🏷️ Attribution: Introduced in this PR (partial sibling fix).
📌 In this PR: ManagedSettingsSecurityDialog/utils.ts — fixed; TrustDialog/utils.ts — not updated; TrustDialog/utils.test.ts — extend if needed.
🔧 Required correction: Mirror the ManagedSettingsSecurityDialog loop: toCanonicalEnvName(upper) ?? upper before SAFE_ENV_VARS.has. Add/extend tests for a safe legacy key in project settings.
🛠️ Author fix: Both dialog paths in one pass.
🟡 P2 — Code Mode enablement must honor legacy user settings.env keys
📍 Where: src/tools/REPLTool/constants.ts (resolveCodeModeEnablement); caller src/main.tsx (configureCodeModeForInteractiveSession).
💥 What fails: User settings contain only CLAUDE_CODE_EXPERIMENTAL_CODE_MODE=1. Enablement reads userSettingsEnv?.[OPENCLAUDE_EXPERIMENTAL_CODE_MODE] only. Shell legacy still works via bootstrap + process snapshot; user settings file legacy does not.
🔎 Root cause: Code Mode resolver bypasses the same canonicalization managedEnv uses for settings apply. At merge-base CODE_MODE_ENV_VAR was CLAUDE_CODE_EXPERIMENTAL_CODE_MODE, so this used to work for legacy keys in user settings.
📜 Stated contract:
Issue #2589 / this PR: backward compatibility for settings env;
docs/advanced-setup.mddocumentsOPENCLAUDE_EXPERIMENTAL_CODE_MODEas canonical with migration expected.
🏷️ Attribution: Introduced in this PR (rename without resolver parity).
📌 In this PR: resolveCodeModeEnablement, main.tsx caller, managedEnvConstants.ts (CODE_MODE_ENV_VAR), legacyEnvNames.generated.ts (includes CLAUDE_CODE_EXPERIMENTAL_CODE_MODE).
🔧 Required correction: When reading userSettingsEnv, canonicalize keys (or check legacy alias via toCanonicalEnvName) before comparing to CODE_MODE_ENV_VAR. Add test in constants.test.ts with legacy-only user settings env.
🛠️ Author fix: Resolver + test only; don't change consent flow.
01acb4f to
12b5c2c
Compare
…ttings boundaries - Install the env rebrand bridge in provider-launch, provider-bootstrap, and provider-recommend so legacy shell flags (e.g. CLAUDE_CODE_USE_OPENAI) mirror into canonical OPENCLAUDE_* names before provider env is read. - Make canonicalizeEnvEntries prefer CLAUDE_CODE_* over CLAUDE_* on a collision, matching applyLegacyEnvAliases for SDK env overrides. - Enable subprocess scrubbing when either OPENCLAUDE_SUBPROCESS_ENV_SCRUB or the legacy CLAUDE_CODE_SUBPROCESS_ENV_SCRUB flag is truthy. - Canonicalize settings env keys before the SAFE_ENV_VARS allowlist check so legacy safe keys are not misclassified as dangerous in the security dialog.
12b5c2c to
98b1eb8
Compare
CLAUDE_CODE_TMPDIR and CLAUDE_TMPDIR both canonicalize to OPENCLAUDE_TMPDIR, so the rename left two identical consecutive writes in the bash and PowerShell shell providers. CodeQL flagged the second write as a useless assignment; keep one. Co-Authored-By: Claude Code <noreply@anthropic.com>
jatmn
left a comment
There was a problem hiding this comment.
Rechecked on head ba8a5a8475255b30f0d3391a2488e90aadfe81b9 (base / merge-base 7f971ac024fc22a2b640df7710d7bd548f16d03e). The earlier change-requested review targeted older SHAs; the items from that review appear addressed on this head (launcher bootstrap, canonicalizeEnvKeys / canonicalizeEnvEntries collision precedence, subprocess scrub dual-read, managed/trust security dialogs, profile JSON canonicalization, Code Mode user-settings legacy). CI rollup is green on this head; GitHub still shows mergeStateStatus: BLOCKED until a fresh approving review lands.
Merge readiness
- Fresh review required:
reviewDecisionremainsCHANGES_REQUESTEDfrom the prior review on older heads. Please dismiss or supersede that state with a new review onba8a5a84after addressing the finding below (or confirming accept risk). - Branch / merge-base: Three-dot diff is current with
origin/mainat preparation time (merge_base == base). No merge conflicts observed locally. - Checks: All reported PR check rollup jobs succeeded on head when fetched (PR Checks, Install hygiene, CodeQL, VS Code launcher, typecheck, web).
- Note:
gh pr diffexceeds GitHub’s 300-file API cap; localgit diff merge-base..headwas used for review (589 files).
Findings
🟡 P2 — Canonical OPENCLAUDE_TMPDIR must reach @anthropic-ai/sandbox-runtime temp injection
📍 Where: src/utils/permissions/filesystem.ts (getClaudeTempDir), src/utils/sandbox/sandbox-adapter.ts (sandbox startup path), vendored @anthropic-ai/sandbox-runtime@0.0.81 dist/sandbox/sandbox-utils.js.
💥 What fails: An operator migrates to only OPENCLAUDE_TMPDIR (no legacy CLAUDE_CODE_TMPDIR / CLAUDE_TMPDIR in the environment). OpenClaude’s permission and temp helpers follow the canonical path, but sandbox-runtime still builds child TMPDIR from the legacy chain and falls back to /tmp/claude:
const tmpdir = process.env.CLAUDE_CODE_TMPDIR ||
process.env.CLAUDE_TMPDIR ||
'/tmp/claude';That diverges from getClaudeTempDir() (reads process.env.OPENCLAUDE_TMPDIR first). Sandboxed tool execution can use a different writable temp root than the paths OpenClaude computed for FS policy — surprising denials, wrong temp location, or inconsistent cleanup for custom-tmpdir setups.
🔎 Root cause: The env rename updated first-party readers and the one-way legacy→canonical bridge, but the pinned sandbox-runtime package was not updated to read OPENCLAUDE_TMPDIR, and OpenClaude does not mirror canonical tmpdir into the legacy names the dependency still consults before wrapping.
📜 Stated contract:
OpenClaude-specific variables use
OPENCLAUDE_*… LegacyCLAUDE_*/CLAUDE_CODE_*names are accepted as fallbacks during migration (.env.exampleheader; PR description).
🏷️ Attribution: PR-introduced. At merge-base, getClaudeTempDir and the dependency both keyed off CLAUDE_CODE_TMPDIR; canonical-only OPENCLAUDE_TMPDIR is new on this head.
📌 In this PR:
getClaudeTempDir/ related FS allow paths — canonical tmpdirbashProvider.ts/powershellProvider.ts— setOPENCLAUDE_TMPDIRon shell children (legacy duplicate writes removed)- Sandbox integration — no bridge for sandbox-runtime’s legacy tmpdir read
- Tests — legacy tmpdir collision tests in
envRebrand.test.ts; no regression for canonical-only tmpdir + sandbox-runtime
🔒 Unchanged on main: Vendored sandbox-runtime version pin; upgrading the package is optional follow-up, not required in this finding.
🔧 Required correction: Before sandbox-runtime reads process.env for tmpdir (sandbox manager init or wrap), ensure the effective temp root matches getClaudeTempDir() / OPENCLAUDE_TMPDIR — e.g. set CLAUDE_CODE_TMPDIR from the canonical value only for sandbox-runtime consumption, or inject equivalent TMPDIR in the sandbox child env the adapter already controls. Add a focused test: OPENCLAUDE_TMPDIR alone → sandbox wrapper child env TMPDIR aligns with getClaudeTempDir() (no reliance on /tmp/claude default).
🛠️ Author fix: Close the tmpdir bridge on every sandbox spawn/init path this PR touches in one pass; do not revert the OPENCLAUDE_* rename or require operators to keep exporting legacy tmpdir forever.
🚫 Out of scope: Forking sandbox-runtime, repo-wide dependency bumps, or changing default /tmp/claude for users who set no custom tmpdir at all.
Refs #2589
Summary
CLAUDE_*/CLAUDE_CODE_*environment variables to the existingOPENCLAUDE_*namespace, stripping theCODEsegment (CLAUDE_CODE_DEBUG_LOGS_DIR→OPENCLAUDE_DEBUG_LOGS_DIR). This stops OpenClaude from sharing configuration and credential variables with Claude Code.envoverrides. A canonicalOPENCLAUDE_*name always wins when both spellings are present; legacy names inherited from the shell produce one deprecation notice per process.ANTHROPIC_*variables unchanged, as those are read by Anthropic SDKs and external contracts. Hook/plugin/Agent SDK protocol variables (CLAUDE_ENV_FILE,CLAUDE_PROJECT_DIR,CLAUDE_PLUGIN_*,CLAUDE_AGENT_SDK_*) andCLAUDE_CONFIG_DIR, which this codebase deliberately ignores, keep their original spelling..env.example, diagnostics, Windows launchers, Android install notes, web config tables, and the VS Code extension to advertise the canonical names.Impact
OPENCLAUDE_*; existingCLAUDE_*/CLAUDE_CODE_*settings continue to work during migration.ANTHROPIC_*provider credentials are unaffected.envRebrandhelpers with unit tests, a generated list of migrated legacy names, and a source-parity test that fails if first-partyCLAUDE_*env reads return tosrc/ortests/.Testing
bun run check:static— passed (ESLint warnings unchanged, any-usage budget, smoke build, deadcode).NODE_OPTIONS=--max-old-space-size=8192 ./node_modules/.bin/tsc --noEmit— passed.bun run integrations:check— passed;bun run web:typecheck— passed (0 errors).bun run test <focused files>— passed for env rebrand, env files, provider flags, managed env, subprocess env, SDK session env, and SDK code-mode transcript tests.cd vscode-extension/openclaude-vscode && bun test src— 56 passed.src/utils/envRebrand.test.ts,src/utils/envFile.test.ts,src/utils/subprocessEnv.test.ts,src/utils/managedEnv.test.ts,src/utils/providerSelectionFlags.test.ts,src/entrypoints/sdk/v2.sessionEnvTurn.test.ts,tests/sdk/sdk-code-mode-transcript.test.ts,vscode-extension/openclaude-vscode/src/state.test.js.bun run typecheck:fastcannot run in this environment (Script not found "check"from the wrapper); tsc with a larger heap was used instead.tests/sdk/package-consumer-types.test.tsfails here becausenpm pack --dry-run --jsonproduces nofilesentry; the same 7 failures reproduce on a cleanHEADworktree.src/utils/managedEnv.test.tsproxy-fixture assertion andsrc/utils/execFileNoThrow.test.tsWindows batch quoting fail identically on cleanHEAD.src/utils/undiciFetch.test.tschild-process TLS/proxy cases fail on cleanHEADunder Node 26 module resolution.Notes
ANTHROPIC_*→TWIGPINE_*mapping described in the issue is intentionally deferred; this change is limited to theCLAUDE_*namespace as scoped.