fix: 发布 1.1.44,提示词按模式注入并让子代理吃到同一份。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
叫我小杨同学andCursor committed 2026-10-01 19:18:15 +08:00
1 parent b47ebfb976
commit 2ecce304db
10 files changed
+816 -221

No files matched your search

+8 -4
View File
@@ -84,9 +84,10 @@ export async function reapplyInstalled(options = {}) {
} catch (e) {
return { ok: false, error: String(e && e.message ? e.message : e) };
}
if (!aiBase || options.forceExtract === true) {
const sealed = core.sealedAsarHandoff();
if (!aiBase || sealed) {
try {
const opened = await core.openSealedDesktopHost({ forceExtract: options.forceExtract === true });
const opened = await core.openSealedDesktopHost({ upgrade: options.upgrade === true });
if (opened.aiBase) aiBase = opened.aiBase;
if (opened.swapAsar) handoff = opened;
if (opened.extracted) freshExtract = opened;
@@ -94,7 +95,7 @@ export async function reapplyInstalled(options = {}) {
return { ok: false, error: String(e && e.message ? e.message : e) };
}
} else {
handoff = core.sealedAsarHandoff();
core.rememberUnpackedArchive();
}
if (!aiBase) return { ok: false, error: core.missingAiBaseMessage() };
// 刚解开的是官方原件。已经在用的目录仍先还原再按这一版重打。
@@ -121,7 +122,10 @@ export async function reapplyInstalled(options = {}) {
cmdFlashOk: flash.ok === true,
};
}
if (clean) writeAppliedStamp(installedRev());
if (clean) {
writeAppliedStamp(installedRev());
if (freshExtract?.archive) core.writeUnpackedAsarStamp(freshExtract.archive);
}
let renamed = false;
if (clean && handoff?.asar && options.scheduleSwap !== false) {
const swapped = core.scheduleSealedDesktopRestart(handoff);