Desktop Quit: local model stop times out at 30 s per command on a busy machine and leaves the engine running

Aperta
#664 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@draarivpatel-ui ci sta già lavorando.

Dal 24/11/2026.

  • #670 di @draarivpatel-ui — aperta
  • #671 di @oldwinter53 — aperta

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
18/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
linux, shell, typescript
Ambito
desktop, devops

Direzione di ricerca

Start in packages/local-installation/src/localmodels-tool.ts, where stopLocalmodels runs each step with timeoutMs: 30_000, and read the installer/local-models-stop.log path the issue quotes. Reproducing needs a loaded local model on Linux, which is hard for a newcomer. Two open pull requests (#670, #671) already target this, so check them before starting.

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

Descrizione

bug

What happens

On a busy machine, the local model stop that Quit starts gives up after 30 s per localmodels command, and the engine and Bifrost stay running after Linger has quit. Nothing retries until the next launch.

Repro (Linux Desktop 0.1.8-rc.0, local model through the stack, host GPUs and CPU shared with other model workloads)

  1. Local model loaded and serving Runs. Quit (SIGTERM, the same before-quit path as tray Quit).

  2. <home>/installer/local-models-stop.log:

    Stopping the local models (localmodels library status).
    Stopping the local models (localmodels stack down).
    Could not stop the local models in <home>: localmodels library status: Command timed out; localmodels stack down: Command timed out
    {"failed":[{"home":"<home>","message":"localmodels library status: Command timed out; localmodels stack down: Command timed out"}]}
    
  3. The stack's strata-poly-serve frontend and two strata-poly engine processes are still running, with their GPU memory, after the app is gone.

  4. Running the same helper by hand right after (installer.js --home <home> --stop-local-models) took 66 s and failed again on library unload <model>: Command timed out, though the engines did exit that time. The uninstaller's --stop then finished in 42 s with {"failed":[]}.

Earlier quits in the same session, on the same install, finished in about 15 s with {"failed":[]}, so the margin is thin rather than always exceeded.

Why

stopLocalmodels (packages/local-installation/src/localmodels-tool.ts) runs every step with timeoutMs: 30_000. library status and stack down can take longer while the GPU is busy or the machine is loaded, and right after a wake from sleep is a likely time for that.

Expected

Quit's stop finishes on a loaded machine, or a failed stop is retried (for example at the next launch, before resume), so a quit Linger does not keep the model in memory.

Found with .agents/skills/verify-linger/scripts/verify-sleep-quit.mjs (#618). Related: #619 is a different path (the stop is skipped entirely when Quick Install did not finish) with the same symptom.

Lingua principale
TypeScript
Stelle
3.8k
Fork
360
Merge medio
8h 10m
PR unite (30g)
540

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 simplexai-labs/linger

Tutte le issue di simplexai-labs/linger

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.