Lifecycle & statuses¶
A session moves through a defined set of statuses from creation to completion, shown in the status bar at the bottom of the session page and in the Status column of the project's Sessions list. Understanding them tells you at a glance whether Crios is working, waiting for you, or done.
Statuses¶
| Status | Meaning |
|---|---|
pending |
Created, not started yet. |
queued |
Waiting for capacity before a sandbox is provisioned. |
starting |
The sandbox is being provisioned and the workspace prepared. |
planning |
The agent is analyzing your request and producing its plan. |
working |
Actively executing — writing code, running commands, testing. |
running |
The agent loop is active (used interchangeably with working). |
recovering |
Coming back from a failure — the agent re-establishes its sandbox and context before continuing, rather than starting over. |
waiting_input |
Paused for you: a plan needs approval, a question needs an answer, or a round of work has finished and the conversation is open. A session with a live loop rests here between runs. |
idle |
Rested after a period without input; the sandbox is released, but the conversation stays open — your next message resumes it. |
paused |
Parked for longer: a session that stayed idle for another day, one that hit a spending cap (see Costs & budgets), or one paused through the API or a chat integration. The sandbox is released: at once after idling or a pause through the API, within about 4 hours after a spending cap or a chat-integration pause. The workspace is kept, and the session is resumable at any time. |
completed |
Finished successfully: every required check passed, and the results, preview, and code are ready. |
failed |
Stopped on an error it could not recover from; the error is shown in chat. |
cancelled |
Stopped on request — Stop in the session header, Cancel session at plan approval, or Abort session when a paused agent asks for your call. |
None of the resting statuses is a dead end. Sending a message resumes any of them. Start resumes the run of a paused, failed, or cancelled session; on an idle or completed session it only brings the workspace back, with its preview if it has one, and the agent waits for your next message. See Approvals & steering for the header controls.
Approval gates¶
Two gates put you in control of what "done" means:
- Plan approval — after planning a larger build as a structured plan, the agent presents it and blocks: Plan ready — waiting for your approval. Nothing executes until you click Approve plan, and you can Request changes with a note or Cancel session instead. If you don't respond within the countdown shown (10 minutes by default), the session parks to free resources — approving later still resumes it automatically. A smaller job that runs on a simple task list has no plan gate. See Approvals & steering.
- Hard requirements — the plan derives concrete requirements from your request, and completion is evidence-gated: the agent must demonstrate each requirement actually works (tests, running the app, visual verification in a real browser) before the session can complete. When everything else passes but some requirements still lack proof, the agent goes back to prove them, and its message ends with a Requirements check list: each requirement marked Implemented or Not implemented, with its Evidence. Failing a gate sends the agent back to fix the issue rather than claiming success. A round that ends with requirements still open rests in
waiting_inputinstead ofcompleted, so you can steer it further. A run's closing summary also lists, after Still missing:, what it left undone that Crios can see for itself: blocked requirements, workflows it saved but did not activate, and AI workflow generations that failed.
Checks before a build finishes¶
Before a build or change session finishes, it checks its app the way publishing will, so a problem is fixed in the session that made it instead of failing the first publish:
- Publishing's own checks — on the project's deploy files, or on what Crios detects when there are none: packages the code uses but never declares, a missing lockfile, deploy files that only work on the build machine. Each TypeScript package also gets its own type-check. What fails goes back to the agent for up to two rounds, with one more when every problem left is new, and a failing production start (below) always gets a round of its own: up to four rounds in all. Anything it cannot fix is recorded, and the session still completes.
- Database migrations — on a PostgreSQL database, pending Drizzle and Diesel migrations run in a transaction that is then undone, and Prisma migrations are checked without being run, so a migration that would fail on the app's database is fixed while the session still runs. Migrations of other tools are not checked. A database you bring yourself is never touched.
- A production start — for Node, Python and PHP apps, each server component is started in turn with its published start command, production settings and a fresh test database, and watched for 90 seconds: it must answer its health check within a minute and keep running. A Node component with a build script is first built for production, which can take up to 5 minutes. This adds about a minute and a half per component, plus any build; an unchanged app is not started again.
- Sign-in — when the app has a sign-in, its fresh database must hold the administrator account from Your app's sign-in in the project's settings, created at every start, and where only the owner should get in, a stranger tries to sign up and sign in. If that works, or a new account gets an administrator's role, the build goes back to close the sign-up.
- Published settings — an app that needs a setting no published app receives, such as a secret kept only in the build's own environment file, is told so while building, with the fix.
Idle and auto-pause¶
Sessions are conversations, and conversations have gaps. When a round of work ends, the session sits in waiting_input with the sandbox warm, so your app keeps running in the preview. After 6 hours without input, the session goes idle and the sandbox is released to free compute; after a further 24 hours it moves to paused. A completed session keeps its sandbox, and with it the preview, for 6 hours before releasing it; a publishing or automatic-repair session has no preview, so its sandbox goes within minutes of the session ending. All three windows are configurable per deployment.
The chat says when a session goes idle or pauses, with a notice such as "No activity for 6 hours: the session is now idle.", and the latest notice asks How did this session go? — a quick Good or Not good; Dismiss hides it. The answer reaches the Crios team only where your organization shares its work with Crios Self Enhance.
None of this loses anything: all work is committed to Git, and the workspace is preserved. Send a message and the session resumes transparently — a fresh sandbox is provisioned, the workspace is restored, and the agent continues with full context.
On app.crios.ai, a session's workspace also stays on disk after the session ends, until someone deletes it: the project's owners and editors can see how much space each one takes, and delete the ones they no longer need, under Storage in the project's More menu. Deleting a workspace keeps the session and its messages; see Storage. Other installations, unless set up otherwise, remove a finished session's workspace 24 hours after the session ends, or after one hour when they need the room for a new session's workspace; resuming the session after that starts on a fresh workspace.
Failures and retries¶
A failed session keeps its workspace and history, and shows This session stopped above the chat with the reason. Pressing Retry there, Start, or sending a follow-up message retries from where it stopped — completed steps aren't redone, and everything already committed is still there. If the same failure repeats, add guidance in your message ("skip the flaky e2e test and finish the export feature") — a retry plus steering usually beats starting over.
A step that keeps failing doesn't always fail the session. When the agent's own repairs stop helping, it parks the session in waiting_input and asks what to change, with suggested replies such as Try another way and Skip it; see Approvals & steering.
Tip
If a session seems stuck rather than failed, check Terminal (a view of the workspace's Activity tab) and the status bar's activity label first — long installs and builds can look quiet from the chat alone.