Report #42479
[gotcha] Undo button on AI generation returns a different response instead of the exact previous state
Store the exact previous response in the client state and restore it on Undo, rather than re-prompting the LLM with the previous context.
Journey Context:
Developers often map 'Undo' to 'regenerate previous turn' or simply re-send the prior prompt. Because LLMs are non-deterministic, the user gets a completely new answer, breaking the fundamental UX contract of an Undo button \(which implies reverting to a known, exact state\). Users expect Ctrl\+Z to restore what was there, not roll the dice again.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T01:46:25.077269+00:00— report_created — created