Docs navigation
Docs / Sessions and History

Sessions and History

Sessions are durable OpenSquilla conversations. They let you inspect past work, resume a conversation, export a transcript, or stop a turn that is still running.

Use sessions when you want to:

  • continue a previous chat from the CLI or Web UI;
  • find the session key for an artifact, cost report, or channel thread;
  • export a transcript for debugging or sharing;
  • abort a long-running turn without deleting the session;
  • delete old sessions after you no longer need them.

Requirements

Session commands use the gateway RPC surface. Start or connect to the gateway before running most session commands:

opensquilla gateway run

Or use the managed background gateway:

opensquilla gateway start --json
opensquilla gateway status

List Recent Sessions

opensquilla sessions list
opensquilla sessions list --limit 20
opensquilla sessions list --status idle
opensquilla sessions list --agent main
opensquilla sessions list --channel telegram
opensquilla sessions list --since 2026-05-01

Use --json for scripts:

opensquilla sessions list --json

Inspect a Session

opensquilla sessions show <session-key>
opensquilla sessions show <session-key> --json

The output includes the resolved session key, agent id, status, model, update time, title, and the latest preview when available.

Resume a Session

opensquilla sessions resume <session-key>

This opens terminal chat on the existing session. Use it when you want to keep the same conversation state instead of starting a fresh chat.

Abort a Running Turn

opensquilla sessions abort <session-key>
opensquilla sessions abort <session-key> --json

Abort stops the running turn if one exists. It does not delete the session.

Export a Transcript

Export Markdown:

opensquilla sessions export <session-key>
opensquilla sessions export <session-key> --output session.md

Export JSON:

opensquilla sessions export <session-key> --format json --output session.json

Exported transcripts are useful for bug reports, audits, or moving a task into a document. Remove secrets, private local paths, provider tokens, and private channel identifiers before sharing an export publicly.

Delete a Session

opensquilla sessions delete <session-key>
opensquilla sessions delete <session-key> --yes

Deleting a session is for cleanup. Export first if you may need the transcript later.

Web UI Workflow

The Web UI uses the same session system. In the control console, use the chat session selector to switch sessions, inspect status, and continue recent work.

Open:

http://127.0.0.1:18791/control/

Troubleshooting

If commands cannot reach the gateway:

opensquilla gateway status
opensquilla doctor

If old context appears summarized, the session may have compacted older history. This is normal for long sessions under context pressure. Export the session when exact text matters.

Read next:


Docs index · Product guide · Improve this page · Report a docs issue

Edit this page on GitHub OpenSquilla docs · synced from dev