# SessionManager

**Kind:** Class

**Source:** [`atloria-monorepo/libs/agent-core/src/session/session-manager.ts`](https://github.com/sherkety/atloria/blob/main/atloria-monorepo/libs/agent-core/src/session/session-manager.ts#L45)

## Methods

| Method | Signature | Returns |
|---|---|---|
| `createId` | `createId()` | `string` |
| `save` | `save(id: string, ctx: SessionSaveContext)` | `string` |
| `resume` | `resume(id: string)` | `ResumedSession | undefined` |
| `list` | `list()` | `SessionMeta[]` |
| `delete` | `delete(id: string)` | `boolean` |
| `latest` | `latest()` | `SessionMeta | undefined` |
| `getMeta` | `getMeta(id: string)` | `SessionMeta | undefined` |
| `loadSnapshot` | `loadSnapshot(id: string)` | `SessionSnapshot | undefined` |

## Where it refuses work

- `SessionManager` stops the work with an early return when `!resolvedId`.
- `SessionManager` stops the work with an early return when `!snapshot`.
- `SessionManager` stops the work with an early return when `existingTitle`.
- `SessionManager` stops the work with an early return when `!firstUser`.
