A refused Screen Recording can end a Run with RUNTIME_CLEANUP_UNCONFIRMED and lock the Runtime until restart
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 8/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- go, typescript
- Ambito
- devtools, operating-systems
Direzione di ricerca
Start in localtools/computer_permission.go at ComputerPermissions.cuaStatus, then follow operation.close in localtools/manager.go and finishOperation in daemon/operations.go to see how uncleanOperations is populated. The trigger is still unconfirmed, so the first step is reproducing the status-poll restart during a Run and reading the cua.call.timing logs. Done means a repro showing the cause, followed by a design decision on the restart bound and lockout recovery.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Context
Following #344, where this chain was noted as its own bug: after the auto-update left Screen Recording effectively refused while System Settings still showed it on, one failed turn cascaded into Local MCP cleanup failed, and every later start on that Runtime was refused with The Runtime process could not be confirmed stopped. Check Local Computer before starting another Run. Only quitting and reopening Linger cleared it.
This is a code-level trace of the whole chain on current main, the candidate triggers, and what logs would discriminate them. No patch is proposed yet; the escalation and lockout mechanics below are concrete, the exact trigger still needs a repro's logs.
The chain
-
The shared CuaDriver service is restarted on every denied status read.
ComputerPermissions.cuaStatus(localtools/computer_permission.go) restarts the service whenever CuaDriver's Screen Recording reads denied, so a fresh grant clears the driver's cached preflight. In the stale-grant state the reading stays denied until the grant is re-recorded, so while a permission card is visible and polled, the shared service is killed and relaunched repeatedly. -
A Run in that state races those restarts. Its cua calls fail fast —
requirePermissionsrefuses before any action starts, so the refusal itself is clean (the call's defer keepsconfirmed). But paths that cannot prove the outcome mark the operation unknown (c.op.markUnknown()in the cua call defer: a journal receipt that fails to finish, orerrUnconfirmedSessionfrom starting input sessions), and a session whose service exits mid-call settles aserrDriverStopped. -
Operation close escalates.
operation.close(localtools/manager.go) joinsmcpproxy.ErrCleanupUnconfirmedwhen an unknown action remains and any close step errored, andop.cua.close()errors join directly. -
The terminal carries it.
finishOperation(daemon/operations.go) turns theSet.Closeerror intoLocal MCP cleanup failedwithCleanupUnconfirmed; on a scheduler yield the Runtime is appended touncleanOperations. -
The Runtime is locked. Start, prepare, model invoke and session compaction all refuse while
runtimeCleanupUnconfirmed(RuntimeType)holds (operation_start.go, operation_prepare.go, model_invoke.go, session_compact.go), and the web renders that as the could-not-be-confirmed-stopped message. -
Recovery is a restart.
uncleanOperationsis an in-memory, append-only slice: nothing removes from it, acknowledges it, or expires it. Quitting Linger is the only way out, which matches the report.
Candidate triggers, ranked
a. The status-poll restart races a Run's in-flight calls: each poll SIGTERMs the shared service the Run's sessions are bound to. A call that cannot prove its outcome because the service died under it marks the operation unknown — one such mark plus any close error poisons the whole Runtime. The two only coincide while the card is polled during a Run, which is exactly the reported window.
b. The escalation itself: operation.close is deliberately conservative (any unknown + any close error), which is the right bias for actions whose effects cannot be proven, but it means one unprovable cleanup out of a whole Run blocks every later start, with no bounded retry or owner-facing acknowledge for the lockout itself.
What would discriminate
On the next occurrence, while the card is pending and before restarting Linger: the daemon log's cua.call.timing lines (failed, driver_ms) around the last Run, the runner.operation.finished failure_code, any COMPUTER_ACTION_UNKNOWN or journal receipt failures, and whether the permission card was being polled while the Run was mid-turn.
Possible directions, for discussion
- Bound or debounce the
cuaStatusrestart (for example, restart at most once per interval, or only when the Linger bridge reads granted while the driver denies — the signature mismatch itself). - Give the lockout an owner-facing recovery that re-proves cleanup (a bounded retry that re-reads the driver and clears
uncleanOperationson a confirmed-clean proof) instead of requiring a restart.
- 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
- 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 simplexai-labs/linger
-
bug
Difficoltà 1/5 1-3 ore Idoneità per principianti 90/100
simplexai-labs/linger#904 ·
I maintainer di solito rispondono entro 1 giorno
-
Local model JIT load waits ~22 s for a concurrency probe that always ends unmeasured and is never cachedForse già presa @oldwinter53 l’ha presa oggi. Apertabug
simplexai-labs/linger#896 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
feat(agents): let an Agent choose runtime, model and reasoning effort when it creates an AgentAperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 52/100
simplexai-labs/linger#888 ·
I maintainer di solito rispondono entro 1 giorno
-
Hand-patches to the protected runtime are silently discarded on upgrade, with no supported overrideAperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 52/100
simplexai-labs/linger#883 ·
I maintainer di solito rispondono entro 1 giorno
-
Daily memory report silently never runs: 5-minute step ceiling plus a stuck in-memory #scheduled setAperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
simplexai-labs/linger#881 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di simplexai-labs/linger
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
MetaMask/eth-phishing-detect#317371 ·
I maintainer di solito rispondono entro 1 giorno
-
android:player ios:player
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno
-
free_port can hand one port to two callers, so the fixed-port http tests fail in parallel runsAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 92/100
erkamyaman/rust-anything#963 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
ZdruzenieSTROM/webstrom-frontend#934 ·
I maintainer di solito rispondono entro 1 giorno
-
bug(worker): detector run is marked failed and never retried when span download failsForse già presa @jagrutgarg l’ha presa oggi. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
traceroot-ai/traceroot#3434 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno