You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug(desktop): composer undo skips and may duplicate pasted content #3786
After entering content in the Maka composer and immediately pasting additional content, pressing Command+Z on macOS or Ctrl+Z on Windows/Linux does not undo the most recent paste operation.
Instead, the most recently typed content is removed while the pasted content remains.
If undo is pressed repeatedly until only the pasted content remains, subsequent undo operations may insert one or two additional copies of that content.
This issue is not limited to a specific type of content. Both the manually entered and pasted content can be Chinese text, English text, URLs, or other plain text.
Expected behavior:
The first undo should remove the most recently pasted content.
Subsequent undo operations should remove previously entered content in reverse order.
Undo operations should never reinsert or duplicate pasted content.
How to reproduce
Open the Maka composer.
Manually enter any content.
Immediately paste any additional content.
Press Command+Z on macOS or Ctrl+Z on Windows/Linux.
Observe that the manually entered content is removed while the pasted content remains.
Continue pressing undo until only the pasted content remains.
Press undo again.
Observe that the pasted content may be inserted again one or two times.
Environment
Maka version or commit: TBD
OS and version: macOS (version TBD)
Surface: Desktop
Node.js version, if running from source: N/A
Logs, screenshots, or additional context
The problem appears to be related to how paste operations are recorded in the composer's undo history.
The issue is independent of the content type. It can occur with Chinese text, English text, URLs, or other plain text.
Activity
Sun-GLiang commentedon Aug 25, 2026
I will work on this.