Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

preview: orphan cleanup kills other tools' detached headless Chrome processes (opt-out or scope to own processes)

Chiusa Adatta ai principianti
#6,203 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
75/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
node.js, typescript
Ambito
cli

Direzione di ricerca

Leggi packages/cli/src/utils/orphanCleanup.ts per vedere come killOrphanedProcesses trova e termina i processi chrome. Modificalo per rispettare HYPERFRAMES_NO_ORPHAN_CLEANUP o per limitare le corrispondenze ai profili di proprietà di HyperFrames tramite un marker. Fatto significa che preview non termina più processi headless Chrome detached non correlati.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Summary

On every hyperframes preview call (including reconnecting to an already running studio), killOrphanedProcesses() terminates every process tree of the current user with PPID 1 whose command line contains chrome-headless-shell, chrome_headless_shell or puppeteer_dev_chrome_profile (packages/cli/src/utils/orphanCleanup.ts, called from packages/cli/src/commands/preview.ts).

On a shared developer machine this also kills detached headless browsers that belong to other tools (for example Playwright/Puppeteer runners or automation that was started detached), not only leftovers of HyperFrames sessions.

Reproduction (macOS, observed on 0.8.97; same code on main / v0.8.191)
  1. Start a detached headless browser from another tool so that its parent exits (PPID becomes 1), e.g. nohup chrome-headless-shell --remote-debugging-port=0 about:blank >/dev/null 2>&1 & disown.
  2. Run hyperframes preview <project>.
  3. The unrelated chrome-headless-shell process is terminated.
Expected

Cleanup only affects processes that HyperFrames itself started, or can be turned off.

Suggestion
  • An opt-out, e.g. HYPERFRAMES_NO_ORPHAN_CLEANUP=1 or --no-orphan-cleanup, and/or
  • scope the cleanup to HyperFrames-owned processes (e.g. a marker in the user-data-dir/profile path, or a PID registry in the state directory).

Context: we embed hyperframes preview in a local design tool and currently have to warn users before every editor start. Related: #1038 (the original orphan problem).

Lingua principale
TypeScript
Stelle
54.1k
Fork
4.9k
Merge medio
1g 16h
PR unite (30g)
755

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di heygen-com/hyperframes

Tutte le issue di heygen-com/hyperframes

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.