A conversation is stuck or failed
This guide shows you how to find which step failed, and what to do about it.
Read the stage events
Open the conversation's log view. Managoat records the progress of a new
sandbox as stage events. They are provision, network,
packages, clone, setup and turn. The step that failed names
itself, and the event data holds the exit code.
packages, clone or setup failed. The cause is almost always the
environment's own configuration. A package that does not exist, a repository
the token cannot reach, or a setup script that exits non-zero. Fix the
environment, then prompt again.
wake failed. A prompt to a parked conversation, or to one whose sandbox
is still being set up, is accepted before the sandbox is ready, so the response
is queued even when the prompt then cannot run.
The event names the reason. When retryable is true, the provider or the fleet
was busy, and sending the prompt again can succeed. Otherwise fix the reason
first, such as the account or the agent.
provision failed outright. Managoat could not create the sandbox. The
provider is unhealthy, the token is invalid, or the deployment is at its fleet
ceiling (503 fleet_full). Read Sandbox errors.
Stuck, with no failure. A running conversation with no events usually
means the process on the sandbox side died and Managoat missed the exit.
Interrupt it, or send another prompt. A wake reattaches to the sandbox when
that sandbox still exists.
managoat conv show <conv-id> # turn status, sandbox name
managoat conv interrupt <conv-id> # stop the in-flight turn, keep the sandbox
managoat conv terminate <conv-id> # destroy the sandbox, end the conversation
The sandbox itself has an API. GET /api/sandboxes/:id shows its status,
its provider and the conversation on it. To get a clean machine, start a new
conversation. Read Sandboxes.
The agent runtime crashed
A turn that ends with exit_code 132 to 136 or 139 means the runtime process
died. It did not exit with an error of its own. The turn stage event names
the signal next to the code:
exit_code=139 signal=SIGSEGV
A crash can happen while the runtime starts, before it writes any output. In
that case Managoat starts the runtime once more on the same turn, and records a
session stage event with reason: "adapter_crashed". Your prompt was not
sent before the crash, so the retry does not run it twice. A second crash
fails the turn. A crash after the runtime has started to answer also fails the
turn, because the prompt may already have run.
Send the prompt again. If the same turn crashes again and again, report it with the conversation ID. A turn that has execution limits is not retried.
The provider refused the model
A turn fails when the model provider refuses the agent's model. Managoat
records a model stage event with the refused id. The turn stage event holds
the provider's own message, and that message usually names a replacement.
The provider refused this agent's model (gemini-2.5-pro): This model
models/gemini-2.5-pro is no longer available to new users. Please update
your code to use models/gemini-3.1-pro-preview for the latest features
and improvements.
Open the agent. Set the model field to the replacement. Send the prompt again. Each turn fails in the same way until that field changes.
The models Managoat lists are advice, not a set of permitted values. Managoat
accepts model IDs under known providers, then asks the runtime to select the
model before inference. The installed runtime must support the model, and the
provider account must have access. A rejected selection stops the turn. Check
the turn's model_selection field and model stage for the requested ID and
failure. An older runtime can need an update even when the account has access.
A provider can also retire a model that worked last month.
The model call failed
A turn fails when the runtime could not get an answer from the model. An
inference key with no credits left is the common cause. The turn stage event
in the failed state holds the provider's own words in its reason:
The runtime ended this turn on a system error: stream disconnected before
completion: You have no credits remaining.
The reply text often repeats the error. Fix the account the key belongs to, or
change the conversation's credential, then send the prompt again. Codex says
"answered" even when its model call failed, so Managoat reads the runtime's
systemError thread status to fail the turn
(#2545). A Claude API
error fails the turn too, with the error in the same reason.
What the statuses mean
failed and terminated are the two terminal states. Managoat refuses a
further prompt.
idle with a suspended sandbox is the normal state at rest, and not an
error. The sandbox parks and scales to zero. The next prompt wakes it, and the
agent's memory is intact.
idle with a destroyed sandbox is what an admin reap or a configured
max-lifetime ceiling leaves behind. An admin reap is
POST /api/admin/sandboxes/:id/reap, or the admin page. The next prompt provisions a fresh
sandbox. Managoat leaves the stored transcript alone, but the agent starts a
fresh session. Read About conversations, and
the full table in Conversation states.
The knock-on effect on capacity
A crash in the middle of a provision leaves a pending or starting sandbox
row. That row counts against its provider's fleet ceiling
(SANDBOX_FLEET_CEILING_SPRITES or SANDBOX_FLEET_CEILING_E2B, 20 live
sandboxes by default).
The reaper runs each hour at :07 and releases a row that has been stuck for
more than 60 minutes. An admin can see every sandbox with
GET /api/admin/sandboxes, and release a stuck one at once with
POST /api/admin/sandboxes/:id/reap. Read
Admin.
The reaper logs one summary line for each run.
kubectl logs -n fountain -l app=fountain --since=2h | grep 'reaper:'
# reaper: released=0 parked=1 expired=0 destroyed=2 untracked=102 live=114
parked counts the idle sandboxes the reaper suspended. The reaper can undo
that, and it is not a teardown.
Conversations from before August 2026
Stage status is reliable now. It was not always. On the default provider, a setup script or a clone that failed could record as successful. The client discarded the exit code and read a 0. See #880, fixed on 2026-08-23. For a conversation that ran before that date, read the logged output. Do not trust its stage status.