fix: 发布 1.1.58,打开即挂上默认提示词

重启或重新打开后不用再点保存。磁盘正文优先,其次规则集,再没有就用内置默认。应用成功仍先询问是否重启。前端模块只在页面发出前改写,避免输入框消失。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
叫我小杨同学andCursor committed 2026-10-05 01:06:55 +08:00
1 parent 75637c48b9
commit 131ef12ecb
8 files changed
+158 -37

No files matched your search

+2 -5
View File
@@ -1527,16 +1527,13 @@ body:not([data-ds-dark-theme]) .dshp-auth-ops button.primary{background:var(--ds
text: tr("restart.incomplete", { detail: parts.join(";") }),
});
loadAll();
return;
}
if (action === "apply" && (d.restarting || d.restart_after_apply)) {
loadAll();
restartDsh(setNotice, function () {}, tr, hostSurfaceOf(state));
setAskRestart(true);
return;
}
if (action === "apply") {
setNotice({ kind: "ok", text: tr("ok.done") });
loadAll();
setAskRestart(true);
return;
}
setNotice({ kind: "ok", text: tr("ok.done") });