Imagine adding an @conversation reference to an unsent message, attaching a report, then removing the wrong attachment. The textarea holds the words, but the composer also needs the attachment and the binding that identifies the referenced conversation. AIClaw v3.12.14 adds undo and redo for that combined draft state. Release notes

Undo the whole edit

On macOS, use Command-Z to undo and Command-Shift-Z to redo in the composer. The handler also accepts Ctrl-Z and Ctrl-Shift-Z, as well as Ctrl-Y for redo. A large text paste can be undone in one step. Undoing a conversation reference removes its visible text and restores the previous bindings. Undoing attachment removal brings the attachment back alongside the existing text. Composer implementation

Before an edit, the composer captures text, attachments, bindings, and the selection range. The textarea's beforeinput event covers ordinary text edits, and actions such as inserting a reference or removing an attachment explicitly take a checkpoint. The history belongs to each draft, holds up to 100 undo snapshots, and drops the redo branch when a new edit is made. Restoring a snapshot puts the cursor or selection back after the view updates. Draft history implementation

Reopening a draft has a different lifetime

The renderer can reload the current unsent text, conversation bindings, and staged document attachments from local storage. The undo and redo stacks live in memory, so reload restores the current draft without its history. Submission clears the stack. Draft storage · Submission code

The Electron smoke tests simulate a large paste and shortcut presses, inspect whether undo restores text and reference bindings together, and check attachment removal through undo and redo. A separate assertion reloads the renderer and checks the saved draft. The release workflow passed for the tagged commit. The fixture exercises composer behavior with simulated inputs. Smoke tests · Release workflow