Every change DataMind Oda or Settings makes to a hooks file keeps a version, so you can compare a change with what the file held before and put an older version back. This page covers the History dialog in Settings > Hooks: the version list, viewing and comparing a version, and restoring one.
The Hooks settings are part of the desktop app and the VS Code extension; the web app does not show them. Hooks covers the section itself, and Hook runs and changes in chat covers what a hook write leaves in a chat.
Versions of {file} opens with the saved versions, newest first.No saved versions yet. A version is kept each time DataMind Oda or Settings changes this file.<label> · <hook count> · <file size>, for example From a chat · 2 hooks · 1. 2KB.Loading hooks….The label names what saved the version; the five labels are:
| Label | What saved that version |
|---|---|
| From a chat | A change written from a chat, for example when Oda created or changed a hook for you. |
| From Settings | A change written from Settings, for example when Open file created your file. |
| Restored | A restore put this version back. |
| Edited outside the app | The file changed outside DataMind Oda, and that edit is kept too. |
| First version seen | The first text of the file Oda saw. |
The newest ten versions are kept for each file, and the oldest drop out as new ones are saved.
… {count} more lines; choose it to show the whole diff, and Collapse to fold it back. Copy puts the diff on the clipboard and becomes Copied.Restored the version from {time}. The restored version is now the file's text, tagged Current and labelled Restored.Could not load the hooks: {message}. Close the dialog and open History again; if the message returns, keep it for your DataMind OS administrator.The saved version could not be read. Try opening it again from the list.In Settings > Hooks, choose History on the file's row; a project's file sits inside its folder's group. The dialog lists the saved versions, newest first.
The button is on the files DataMind Oda writes; a Claude Code file is written by Claude Code, so no versions exist for it. Edit a Claude Code file in the tool that owns it.
Each time DataMind Oda or Settings changes the file. The first text Oda saw of a file is kept as First version seen, and a change made outside the app is kept as Edited outside the app.
It names what saved that version: a chat, Settings, a restore, an edit made outside the app, or the first text Oda saw of the file. The table above pairs each label with its meaning.
Yes. View only reads the version; nothing is written until you choose Restore. Back returns to the list.
Find it in the list and choose Restore, or open it with View and choose Restore; the dialog confirms with Restored the version from {time}.
The current version already matches the file, so there is nothing to put back on that row. Open another version to get its Restore.
Yes. A restore keeps the state it replaced, so the version that was current before is still in the list; restore it the same way.
The newest ten versions are kept for each file: as new ones are saved, the oldest drop out. If an old state matters to you, restore it while it is still listed.
For a project's file, yes: a restore changes the folder's hooks, so the folder reads Changed since you trusted them and its hooks are withheld until you trust it again (Trust a folder's hooks). Your own file is not trusted, so nothing is withheld there.
The dialog reports Could not load the hooks: {message}, with the reason after the colon. Close the dialog and open History again; if the message returns, keep it for your DataMind OS administrator.