会话接通游玩期偏好审核,并打磨主界面菜单与消息窥视交互。

开场落盘时同步抬升名片到主角设定;有分支变体也可重滚。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-09-24 00:59:17 +08:00
co-authored by Cursor
parent a4ad552aff
commit 832f8e4962
7 changed files with 961 additions and 211 deletions
+4 -1
View File
@@ -215,13 +215,15 @@ export function isRefreshableMessage(msg: BranchableMessage): boolean {
return kind === "worker_questions" || kind === "worker_output";
}
/** 与 refreshMessage 同一套门槛:类型对,且有 worker 快照或该条检查点。 */
/** 与 refreshMessage 同一套门槛:类型对,且有可回滚快照。 */
export function canAttemptRefresh(
msg: BranchableMessage,
opts: {
lastWorkerId?: string;
hasLastWorkerSnapshot: boolean;
hasMessageCheckpoint: boolean;
/** 消息已在分支里(曾重 roll / swipe) */
hasBranchVariants?: boolean;
},
): boolean {
if (!isRefreshableMessage(msg)) return false;
@@ -229,6 +231,7 @@ export function canAttemptRefresh(
(typeof msg.actor === "string" && msg.actor.trim()) ||
opts.lastWorkerId?.trim();
if (!workerId) return false;
if (opts.hasBranchVariants) return true;
return opts.hasMessageCheckpoint || opts.hasLastWorkerSnapshot;
}