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
Summary: Reproduced on 0.19.1 — for a file opened at launch, the 4th undo past the original content empties the document (files opened into a running window were fine). Not reproducible on 0.20.0-rc.1 or develop (argv launch, open into running window, tab-switch round trip, source-mode edit, rapid undos): the new @muyajs/core engine clears history when a document loads and ignores undo on an empty stack. Closing; please reopen with steps if it happens on 0.20.0.
Activity
fix: cherry-pick seven upstream fixes; cure state-clone aliasing
Jocs commentedon Sep 11, 2026
感谢反馈!我按你的步骤在 0.19.1 上复现了这个问题,但在 0.20.0 预发布版里已经不再出现,所以先关闭这个 issue。
复现步骤:打开内容为
# Title+hello world的文件 → 分两次编辑(中间停顿) → 通过「编辑 › 撤销」同一路径连续撤销 20 次。在 develop 上还额外验证了:切换标签页后再撤销、在源码模式里编辑后再撤销、快速连按撤销,内容都停在文件打开时的状态。
原因:0.19.1 使用旧的编辑器引擎,随启动打开的文件在撤销到原始内容后还能继续撤销到一个空文档。0.20.0 换成了新引擎 @muyajs/core:加载文档时会清空撤销历史,撤销栈为空时再按撤销不做任何事。
可以试试 0.20.0-rc.1。如果在 0.20.0 上仍能复现,请回复具体步骤,我们会重新打开。
Summary: Reproduced on 0.19.1 — for a file opened at launch, the 4th undo past the original content empties the document (files opened into a running window were fine). Not reproducible on 0.20.0-rc.1 or develop (argv launch, open into running window, tab-switch round trip, source-mode edit, rapid undos): the new @muyajs/core engine clears history when a document loads and ignores undo on an empty stack. Closing; please reopen with steps if it happens on 0.20.0.