Local history
Ingot keeps a private version of a file every time you save it and every time an agent changes it, so you can compare with any earlier version and put it back, even if you never committed it.
Open it
| Way | How |
|---|---|
| Command palette | File: Show Local History |
| Shortcut | ⌘⌥⇧H (Ctrl+Alt+Shift+H on Windows and Linux) |
| Editor | right-click › File History › Show Local History |
It opens for the file in the active editor, in a tab called Local History: cart.ts.
Compare and restore
The list shows every version, newest first, with its time and label. Select one to see a side-by-side diff with the current file (↑ and ↓ move through the list).
Click Restore to put the selected version back. The current text is saved as Before restore first, so a restore can always be undone, and the whole restore is one undo step in the editor.
When versions are saved
| Label | When |
|---|---|
| Saved | every save, including auto-save |
| Original | the file as it was when first opened, if it differs |
| Before agent edit / Agent edit | when an agent's change arrives for review, and after you accept or reject it |
| Before inline edit / Inline edit | the same for inline edits |
| Before restore | right before a restore |
A version identical to the one before it isn't stored twice. Auto-saves of a file with an agent change still waiting for review are skipped, so a half-reviewed proposal never becomes a version.
Where it lives
Versions are kept in your project under .ingot/history/, which ignores itself in git. Each file keeps its newest 100 versions. Files over 2 million characters and files outside the open project aren't tracked.