Command Journal and Undo
Every executed command is recorded in an in-memory journal with its inverse, so AI-applied changes can be undone step by step. The journal is local, never transmitted, and cleared on demand. This lowers the risk of trying AI suggestions.
Planned. This page shows the specification from issue #207. The live example, source for every framework and the API reference replace it when the feature ships.
Live example
Grid with an empty journal panel.
Expected behavior
Each command appends a journal entry tagged with its origin (ai, user or api). Undo reverts the last entry and Redo reapplies it. Running a new command clears the redo stack.
Planned API surface
grid.commands.undo()grid.commands.redo()grid.commands.getJournal()commands.journalLimitonJournalChangeAcceptance criteria
- Undo restores the exact prior state for all view ops (pending)
- Mutation undo restores the original cell values (pending)
- The journal respects journalLimit (pending)
- The journal is never included in any provider context (pending)