Chat logs on disk

DataMind Oda saves a log of every chat as files on your computer. This page shows where those files live, how Oda names and keeps them, and how to back them up or read them. What a log contains and the rules for reading it are on Chat log format.

Where chat logs live

Oda keeps every chat under a single folder on the computer; this page calls it the log folder. Inside it, chats are grouped by the folder they work in, and every chat has a folder of its own. A chat with compression on looks like this:

text
<log folder>/
  --<working folder>--/
    <chat folder>/
      session.v4.jsonl.zstd

How log files are named and kept

Note

Oda adds log files; it never renames, replaces or deletes an existing generation.

The log folder and compression

One writer at a time

Oda keeps each chat's log in order by allowing one writer per chat at a time.

Back up and copy chats

To keep a backup, copy the whole log folder to a safe place.

Read a chat log

Questions, answered

Where do I find my chat logs on this computer?

All chat logs live under one folder, the log folder set for your installation. Inside it, chats are grouped by the folder they work in, and every chat has a folder of its own. If you are not sure which folder was chosen, ask your DataMind OS administrator.

Why is there no log file for a chat I just created?

A chat reaches disk only after it first has content. Until the chat starts, Oda writes nothing for it, and a chat you never used leaves no files, even if Oda stops suddenly.

What do the file names mean, and why can one chat have several files?

session.jsonl is the oldest log format; later formats add their version, as in session.v4.jsonl, and the name ends in .zstd when compression is on. When Oda updates a log from an older format, the new file is added beside the old one, so a chat can have several generations side by side. The newest generation is the chat's current state, and Oda never renames, replaces or deletes the older ones.

How do I back up my chats?

Copy the whole log folder to a safe place. Every chat folder is self-contained and keeps the chat's earlier generations, so the copy holds everything. To use a copy, put it back keeping the folder shape and the saved form; Oda refuses a log that sits in the wrong place or form rather than read it wrongly.

Can I read a chat log myself?

With compression off, yes: the log is plain text, one JSON object per line. With the default compression, read the chat in Oda, because the compressed form is built to be read by Oda. What a log contains and the rules for reading it are on Chat log format.

Does Oda clean up old log files by itself?

No. Oda never removes or trims log files, older generations included, and there is no delete-all action. Log files stay until someone removes them, so keep backups of anything you need.

What is the session.lock file?

On some systems Oda keeps a small file named session.lock in a chat's folder while the chat is being written. The lock ends with its process, so a crash leaves no stuck lock. If a chat stays locked because the process holding it cannot continue, removing the file frees the chat for the next writer; do this only when you are sure that process will not write the chat again.

Should I edit a log file by hand?

No. Oda checks the log files it opens and refuses one that changed outside Oda rather than guess, so a hand edit can leave a chat that will not open. Back files up instead of editing them.