fix: 发布 1.1.50,修 macOS 桌面重启/CLI(#53)与应用后默认提示词注入。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
叫我小杨同学andCursor committed 2026-10-02 22:29:28 +08:00
1 parent 94a7cf814e
commit 148d6218d8
7 files changed
+128 -47

No files matched your search

+4 -3
View File
@@ -94,8 +94,9 @@ window.__ModuleLoader__.load({ id: "dsh-purge", factory: (require) => {
return Boolean(active && active.size > 0);
}
async function bothInjectEmpty(overrideText) {
async function bothInjectEmpty(overrideText, defaultText) {
if (!promptBoxEmpty(overrideText)) return false;
if (!promptBoxEmpty(defaultText)) return false;
try {
return !activeRuleHasBody(await rulesApi("status"));
} catch {
@@ -1498,7 +1499,7 @@ body .dshp-dock[data-theme="white"] .dshp-dock-body .rt-card,body .dshp-dock[dat
run();
return;
}
bothInjectEmpty(overrideRef.current).then((empty) => {
bothInjectEmpty(overrideRef.current, defaultOverrideRef.current).then((empty) => {
if (ticket !== actionTicket.current) return;
if (empty) {
rejectNeedPrompt(tr);
@@ -1538,7 +1539,7 @@ body .dshp-dock[data-theme="white"] .dshp-dock-body .rt-card,body .dshp-dock[dat
if (ticket === actionTicket.current) setPatchBusy(false);
});
};
bothInjectEmpty(overrideRef.current).then((empty) => {
bothInjectEmpty(overrideRef.current, defaultOverrideRef.current).then((empty) => {
if (ticket !== actionTicket.current) return;
if (empty) {
rejectNeedPrompt(tr);