Repository navigation
fix(desktop): 修复设置误报操作占用并显示实际运行的操作 - #1455
Conversation
swjnxyf
left a comment
There was a problem hiding this comment.
Reviewed 6b44f58 against the exact clean special checkout. Both previous findings are addressed: idle_generation samples admission and generation under the existing controller lock, with pre/post target checks around settings I/O; a live completion owner now retains the Core until cleanup and return, rather than discarding it on lock contention. The original interrupted-owner fence remains intact. The regression tests exercise admitted writers, a real staged configuration rollback, delayed Core return and delayed failure cleanup, and subsequent settings mutations. No new synchronization domain or lifecycle state. Exact-head CI 46141981481 succeeded; diff check passed. I reviewed source and test assertions but did not independently rerun the reported local suite. The original reporter's machine-specific cause remains unconfirmed and the service-autostart request is outside this PR. No blocking findings; approved for merge.
问题
有用户反馈,修改设置时反复看到“另一个 Desktop 操作仍在进行”,重启电脑后仍会出现。操作锁只存在于 Desktop 进程内。这条提示还用于
desktop_state_unavailable,保存配置失败或尚未配置 Runner 都可能走到这里。重启后相同的配置条件可以再次触发提示。另一个可复现的问题出现在持久环境。启动刷新或定时刷新撞上正在执行的操作时,界面可能显示笼统的占用提示,或者忽略这次刷新错误,导致用户看不到操作名称和停止入口。
修改
验证
state::、operation::tests和error::tests三组测试通过。相关反馈见 #1419 和 #1166。