superserve run creates a session - an isolated sandbox running your agent, with its own filesystem and process state. Sessions persist after the conversation ends. Come back hours or days later and resume where you left off.
Resume a conversation
How persistence works
Sessions use two layers of persistence:-
Workspace filesystem - Superserve persists the sandbox’s
/workspacedirectory. Files your agent reads, writes, or modifies survive across turns and restarts. - Conversation memory - Make sure your agent supports multi-turn conversations so it remembers context across messages. Most frameworks handle this automatically when configured correctly.
Session lifecycle
| Status | Meaning | Resumable? |
|---|---|---|
active | Processing a message right now | No |
idle | Waiting for the next message | Yes |
completed | Ended by user | Yes - fresh sandbox, same workspace |
failed | Crashed or timed out | Yes - fresh sandbox, same workspace |
Sessions in the SDK
You can also manage sessions programmatically with the TypeScript SDK:run() and stream() calls - the agent remembers previous messages and the workspace retains all files.