A session whose harness process dies stays `ready` with its task `working` forever
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 46/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- go, kubernetes
- Ambito
- backend, distributed-systems
Direzione di ricerca
Start by tracing the worker path that logs “Sandbox has no processes left while the actor is hosted” and how it updates session and A2A task state. The issue names no source files or tests, so locate the worker handling actor liveness and its task/session status tests. Done when a dead harness no longer leaves a task working indefinitely and the session or harness can recover as described.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
What happened
The Substrate actor of a session running the claude-code harness was killed when it reached its memory limit (1Gi, the runtimeDefaults.memory default). The agent was running pnpm install in the sandbox at the time.
The worker logged the death:
{"time":"2026-10-29T01:44:20.624926189Z","level":"WARN","msg":"Sandbox has no processes left while the actor is hosted",
"ate.actor.name":"session-01a1854d-7945-7223-993f-a577f6fc5247","ate.sandbox.oom_kills":1}
The worker knows the cause: ate.sandbox.oom_kills: 1, with ate.stats.memory.peak=1073745920 and the working set down to 1146880 afterwards (only _pause left). But that warning stays in the worker's log. It doesn't reach the session or the task.
Five hours later, kagent still reports the session as alive and its turn as running:
GetSession:state = RUNTIME_STATE_READY, nofailure.- The A2A task of the turn is still in
TASK_STATE_WORKING. Its last event is the tool result from 01:43:33, and nothing came after it. - The actor is still hosted, and the worker samples it every minute at about 1 MB.
Any client therefore shows the agent as working indefinitely. The client cannot tell a dead turn from a long one, such as a build that prints nothing for ten minutes.
Expected
When the sandbox has no processes left while a task is in progress, kagent should:
- Move the task to
TASK_STATE_FAILED, with a message that says why ("the agent's process exited", and "out of memory" when the cgroup says so). The stream should then end. - Set the session to
RUNTIME_STATE_FAILEDwith aFailure(reason, message), or restart the harness so the next message works. Either way, the state must reflect it. - Let the session take a new message afterwards. Today, a new message can't run on the conversation: the stuck task is still active ("already has an active task").
Why the client cannot do it
Only the worker knows the process is gone. The session API (Get, List, Suspend, Resume, …) has no liveness signal. The A2A task only changes when the harness itself reports a status, so a harness that dies leaves it working. A client can only guess from silence.
Versions
- kagent 1.0.0-alpha17
- Substrate 0.6.0-alpha3 (
ateworker-gvisor, gVisorrelease-20261012.0) - agentgateway v1.6.0
- Harness: claude-code (
<config>-claude-code) - k3s, 3 nodes of 16Gi
Reproduce
- Run an agent on the claude-code harness with the default 1Gi
runtimeDefaults.memory. - Ask it to clone a mid-size repository and run
pnpm install, or start a process that allocates more than 1Gi in the sandbox. - Once the worker logs "Sandbox has no processes left while the actor is hosted", call
GetSessionand read the task: they reportREADYandworking.
Raising the limit (we now set 4Gi) makes this less likely but doesn't fix it. Any crash of the harness process leaves the same state.
- Lingua principale
- Go
- Stelle
- 4.5k
- Fork
- 937
- Merge medio
- 1g 10h
- PR unite (30g)
- 150
Preparare l'ambiente
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Nessun Dockerfile né file Docker Compose
- Nessun 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 kagent-dev/kagent
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
kagent-dev/kagent#3792 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
kagent-dev/kagent#3790 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 80/100
kagent-dev/kagent#3789 ·
I maintainer di solito rispondono entro 1 giorno
-
[BUG] A2A lookups by task or context ID reveal whether another user's resource existsForse già presa Una pull request collegata a questa issue è aperta o già unita. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
kagent-dev/kagent#3787 ·
I maintainer di solito rispondono entro 1 giorno
-
[BUG] Python memory summarization fails for Gemini models: the request has no model nameForse già presa @BahaaMattar l’ha presa 7 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
kagent-dev/kagent#3710 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di kagent-dev/kagent
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
limitlessprojects/Go-Hybrid#4764 ·
I maintainer di solito rispondono entro 1 giorno
-
[bug]: lint fails on main, generated CLI docs out of dateForse già presa @bupd l’ha presa oggi. Apertabug documentation
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
goharbor/harbor-cli#1180 ·
I maintainer di solito rispondono entro 1 giorno
-
crane: mutate --env adds duplicate PATH on Windows images when key case differsForse già presa @aad1tyaaaaa l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
google/go-containerregistry#2523 ·
I maintainer di solito rispondono entro 4 giorni
-
bosh_io_stemcell_type: regular does not work for noble and resolute as it adds -go_agent as suffixAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
cloudfoundry/bosh-deployment-resource#138 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100