Sessions
Projects and conversations are saved automatically. Restart Soma with the same
SOMA_HOME, select a conversation, and submit a prompt to continue. IDs, model
selection and tool permissions are preserved.
Storage
SOMA_HOME defaults to ~/.soma. To choose another directory:
JSONL files store conversation history; SQLite stores the catalog and summaries. Back up the entire directory while Soma is stopped. It may contain source code and conversation contents.
Saved history remains readable when its workspace or provider is unavailable. To continue, restore the workspace or select an available provider.
Delete a conversation
DELETE /api/threads/{id} permanently deletes an independent conversation and
its spawned descendants. The project, workspace files and other conversations
remain. Delete managed children through their root; busy trees or writers owned
by another process return 409.
Deleting main creates an empty replacement with its latest model selection.
The response includes deleted_thread_ids and project with the new
main_thread_id. If replacement initialization fails, the old main remains.
Failed cleanup can be retried. Records already delivered to other conversations
remain in those histories.
Interrupted work
After restart, unfinished turns are marked interrupted. Tool results are retained; calls without a recorded outcome are marked uncertain and are not replayed automatically.
Pending messages, steering input and agent follow-ups require explicit continuation. Historical worker reports are not sent again; new reports may start a collection turn.
Only one process can write a conversation at a time. Incomplete final records are discarded on continuation; other corruption or unsupported formats return errors.