Where each harness keeps the record of past sessions, how to get back into one, and how to keep, export or remove them. Every record type and field inside a transcript is on the Transcript format page. Automatic notes carried between sessions are on the Memories page.
What is saved
| Question | OpenCodechecked at 2.3.0 |
|---|---|
| Where sessions are saved | Sessions live in the SQLite database |
| Subagent and forked sessions | Subagent runs become child sessions in the same |
| Prompt history | TUI prompt recall is separate from transcripts and kept in |
Getting back to a session
| Question | OpenCodechecked at 2.3.0 |
|---|---|
| Resume or continue | Run |
| Find a past session | Use Since 2.1, |
| Export or share | Partly
Export and import moved from top-level |
| Read sessions from code | Every client talks to a local background server whose V2 HTTP API includes Since 2.1, replay data is in |
Keeping and removing
| Question | OpenCodechecked at 2.3.0 |
|---|---|
| How long they are kept | Partly Sessions are kept indefinitely, and Since 2.1, |
| Don't save this session | |
| Cloud sync and upload | Partly The normal CLI uses its server-owned local database; remote clients can use another server. The inspected workerd host explicitly enables durable event persistence, whereas the local bus defaults it off. These host registrations do not prove that all OpenCode deployments keep transcripts solely on the local machine. Hosted retention, additional providers and plugin-defined external delivery need their own evidence. |
Notes and sources
OpenCode, 25 sources
- Partial refresh at v2.1.1: replay-data fields, compaction references and archive API verified; existing database-path and command evidence remains scoped to 2.0.29. No runtime/import probe.
- 2.2.0 source adds opt-in experimental.media_blob storage for inline user/tool media, off without the setting. Normal history reads hydrate references; clients opt into media: references with x-opencode-capabilities: experimental-media-uri. Missing blob bytes become an unavailable-media text placeholder. Instruction entry state is separate from chronological instruction updates; previous transcript schema pins are not upgraded wholesale.
- 2026-11-15 source refresh: v2.3.0 at a6b15d33daf6ab7d35569f6d711fdb630b9f04e7. Source inspection, not a harness runtime probe. Historical supplements keep their independent evidence and dates.
- The historical 1.x and dev-json variants are separate formats; neither defines 2.3.0 rows. Older CLI/export instructions retain their independently dated evidence.