nf start, nf editor and nf dev exit 0 when the processes they start fail
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 72/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- bun, node.js, typescript
Direzione di ricerca
Read src/lib/package-manager/package-manager.ts and the start, editor, and dev actions under src/action/actions/, then trace how AbstractAction.resolveResult handles keepAlive and failures. Check the existing tests for these actions and process management. Done means child failures stop the other processes, produce a failure message and nonzero exit, and the editor URL is printed only after /healthz responds.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Which package is this bug report for?
@nanoforge-dev/cli
Which command is this bug report for?
start
Issue description
nf start, nf editor and nf dev exit with code 0 when the processes they start fail (read from the code, not run).
PackageManager.runandrunDevcatch a failed child and returnfalse(src/lib/package-manager/package-manager.ts#L97-L99, src/lib/package-manager/package-manager.ts#L143-L144).- The actions ignore that value (wrapped again in
runSafe) and always return{ keepAlive: true }(src/action/actions/start.action.ts#L88, src/action/actions/start.action.ts#L280-L281, src/action/actions/editor.action.ts#L38, src/action/actions/dev.action.ts#L21). AbstractAction.resolveResultreturns early onkeepAlive, so it neither prints the failure message nor callsprocess.exit(1). Once every child has exited, Node exits with 0.
Effects: a nf start whose loader can't bind its port or read its TLS files exits 0 in CI and in scripts. When only the client or only the server fails, the other one keeps running and the CLI only prints START_PART_FAILED. nf editor prints "Editor running!" (src/action/actions/editor.action.ts#L33) before the editor has started, and prints it even when the editor crashes.
Expected: when a child fails, the others are stopped and the command exits non-zero with its failure message. The editor URL is printed once /healthz answers.
Found during a read-only audit of main at e95b881 (2026-11-11).
Code sample
// start.action.ts
await Promise.all(tasks); // each task resolves even when its loader failed
return { keepAlive: true }; // -> resolveResult returns early, no exit code
Versions
- @nanoforge-dev/cli 3.0.1 (main, e95b881)
- Node.js 26.7.0
- Bun 1.3.14 (bundled)
- Linux
Issue priority
Medium (should be fixed soon)
I have tested this issue on a development release
No response
- Lingua principale
- TypeScript
- Stelle
- 2
- Fork
- 2
- Merge medio
- 2g 18h
- PR unite (30g)
- 17
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di NanoForge-dev/CLI
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
NanoForge-dev/CLI#294 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
NanoForge-dev/CLI#293 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
NanoForge-dev/CLI#292 ·
I maintainer di solito rispondono entro 1 giorno
-
command:dev enhancement good first issue refactor
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
NanoForge-dev/CLI#281 ·
I maintainer di solito rispondono entro 1 giorno
-
bug command:build good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
NanoForge-dev/CLI#276 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di NanoForge-dev/CLI
Issue simili
-
Mend: dependency security vulnerability
Difficoltà 1/5 1-3 ore Idoneità per principianti 65/100
fdm-monster/fdm-monster#5563 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
be-BOP-io-SA/be-BOP#2849 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 79/100
I maintainer di solito rispondono entro 1 giorno
-
1️⃣ phase/under-investigation flaky/confirmed flaky/needs-decision type/bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
growilabs/growi#12246 · 3 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
🐛 The Rulekeeper - An index run that gives up on the lock ends SucceededForse già presa @github-actions l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
SSWConsulting/SSW.Rules#2809 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno