Skip to content

Sessions & Resume

Every conversation is automatically saved. You can resume any past session without losing context.

Storage

Sessions are stored in ~/.glue/sessions/{timestamp}-{id}/ with these files:

FileContents
meta.jsonSession ID, working directory, model, provider, start/end times
conversation.jsonlLine-delimited event log (messages, tool calls, results)
state.jsonMutable per-session state (e.g. Docker mounts in use)
runtime.mboxCloud-runtime only: agent's workspace changes as a git format-patch mbox
runtime.mbox.meta.jsonCloud-runtime only: sidecar with runtime ID, sandbox ID, bootstrap SHA, capture metadata

For cloud runtimes (Daytona, Sprites, Modal), the runtime.mbox is written at session shutdown and can be applied back to your host workspace. See Session Patches for the full workflow.

Resuming a Session

--resume (or -r) is a flag — when given a positional value, Glue normalizes it to an internal --resume-id=<id>. The forms below all work:

MethodDescription
glue --resumeOpen the session picker at startup
glue -rSame, short form
glue --resume <session-id>Resume a specific session by its ID
glue --resume <session-id> "new prompt"Resume a session and immediately send prompt
glue --continueAuto-resume the most recent session
/resumeOpen the session picker during a session
/resume <id-or-query>Resume by ID or fuzzy query during a session

TIP

Use glue --continue to pick up exactly where you left off. This is useful when you need to restart your terminal or switch machines.

See also

Released under the MIT License.