Commit 2f665a1
docs(cli): past-tense the deleted detectMode VITEST arm in two serve e2e headers (#12495)
Two `packages/cli/test` headers quoted `detectMode`'s `env.VITEST ||` arm in
the PRESENT tense and cited `local-crypto-provider.ts:133`. That arm was
deleted by a58eac3 (2026-08-23) and the live `detectMode` sits at
`local-crypto-provider.ts:185`, reading `NODE_ENV` and nothing else.
The conclusion each header draws survives; the mechanism it predicts does not:
- `serve-process-child-env.e2e.test.ts` implied the strip still moves crypto
posture. Children spawned through `helpers/serve-process.ts` run
`bin/run-dev.js`, which pins `NODE_ENV = 'development'` before argv is
parsed, and `NODE_ENV` sits outside `childEnv()`'s strip family — their
posture is `development` with or without a leaked `VITEST`, so the
`test` -> `development` flip the old wording predicted cannot happen.
- `serve-node-env-production-default.e2e.test.ts` tied its explicit
`OS_SECRET_KEY` to `childEnv()` stripping `VITEST`. The unset-`NODE_ENV`
leg selects production posture from `NODE_ENV` alone; production refuses
without a stable key whether or not a `VITEST` leaks in.
Both restatements quote the removed line in the PAST TENSE and say so, which
is the discriminator this class needs: `local-crypto-provider.ts` and four
other sites quote the same string CORRECTLY, as retired code, and a
string-level sweep would corrupt them. Comment prose only, no behaviour change.
Claude-Session: https://claude.ai/code/session_01UjujZN219uFzBhSYfMykCd
Co-authored-by: Claude <noreply@anthropic.com>1 parent 3d8d2f1 commit 2f665a1
2 files changed
Lines changed: 33 additions & 7 deletions
File tree
- packages/cli/test
Lines changed: 13 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
244 | 244 | | |
245 | 245 | | |
246 | 246 | | |
247 | | - | |
| 247 | + | |
| 248 | + | |
248 | 249 | | |
249 | 250 | | |
250 | 251 | | |
251 | 252 | | |
252 | 253 | | |
253 | | - | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
254 | 265 | | |
255 | 266 | | |
256 | 267 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
44 | 59 | | |
45 | 60 | | |
46 | 61 | | |
| |||
0 commit comments