release: 1.1.71 收回 #86 steer 误伤,修升级自锁与启用失败

UI 队列 steer 仍走 followup;公共 steer() 回到 next-step。installed-rev 跨版本刷新 apply 占位。#88 给现行 renderedPrompt 锚点补标记。发版前检查入口语法。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
叫我小杨同学andCursor committed 2026-10-11 19:09:54 +08:00
1 parent d4fd75ae78
commit 5e757260a0
7 files changed
+88 -11

No files matched your search

+22 -3
View File
@@ -56,12 +56,24 @@ function isApplyPlaceholder(sha) {
return text.startsWith("apply:") || text === "applied";
}
function applyPlaceholderVersion(sha) {
const m = String(sha || "").trim().match(/^apply:(.+)$/);
return m ? m[1] : "";
}
function refreshStaleApplyPlaceholder(sha) {
const ver = pluginVersion();
const oldVer = applyPlaceholderVersion(sha);
if (oldVer && ver && oldVer !== ver) return `apply:${ver}`;
return String(sha || "").trim();
}
/** 手动应用未必写过 installed-rev;空 sha 会让 settle 永远判未对齐并无限重启。 */
export function resolveApplySha(explicit) {
const wanted = String(explicit == null ? "" : explicit).trim();
if (wanted) return wanted;
if (wanted) return refreshStaleApplyPlaceholder(wanted) || wanted;
const rev = installedRev();
if (rev) return rev;
if (rev) return refreshStaleApplyPlaceholder(rev) || rev;
const ver = pluginVersion();
return ver ? `apply:${ver}` : "applied";
}
@@ -228,7 +240,14 @@ export function healEmptyAppliedStamp() {
/** 安装后还没有 installed-rev 时先落盘占位(tarball / 手动应用常见)。 */
export function ensureInstalledRevSeed() {
const current = installedRev();
if (current) return current;
if (current) {
const next = refreshStaleApplyPlaceholder(current);
if (next && next !== current) {
writeInstalledRev(next);
return next;
}
return current;
}
const stamp = readAppliedStamp();
if (stamp?.sha) {
writeInstalledRev(stamp.sha);