Chattynator Undo / Redo
A companion addon for Chattynator. It adds editing history to the main chat input box without modifying Chattynator's files.
Usage
Ctrl+ZorCmd+Z: undo.Ctrl+Y,Cmd+Y,Ctrl+Shift+Z, orCmd+Shift+Z: redo.Up ArrowandDown Arrowremain assigned to Chattynator's sent-message history.
Consecutive keystrokes are grouped into a single undo step. Spaces, cursor movement, paste, cut, and programmatic changes end the current group. Both the text and cursor position are restored, with a limit of 100 in-memory history entries.
Each draft or sent-message entry visited with Up Arrow/Down Arrow keeps an independent undo/redo timeline. Returning to an entry restores its edited text, cursor position, and editing history. Sending or cancelling a message, or closing the chat input, clears every timeline in the session.
The addon also repairs Chattynator's current top-of-history index bug. After returning to the draft, Up Arrow starts again at the newest sent message, and Down Arrow can always return to the draft.

