fix: normal 模式正确解析最新 user 楼层以持久化 Recall Card;关闭渲染后 MutationObserver 风暴

Made-with: Cursor
This commit is contained in:
Youzini-afk
2026-04-06 19:43:32 +08:00
parent 665c547ee3
commit f42295fe80
2 changed files with 6 additions and 3 deletions

View File

@@ -2848,8 +2848,9 @@ function schedulePersistedRecallMessageUiRefresh(delayMs = 0) {
summary.status === "missing_message_anchor") &&
attemptIndex < retryDelays.length - 1;
const shouldWatchForRepaint =
summary.status === "rendered" && summary.renderedCount > 0;
// 勿在「已成功渲染」时长期挂 MutationObserver#chat 上 class/流式更新会疯狂触发
// runAttempt造成满屏刷新与日志显式事件USER_MESSAGE_RENDERED 等)仍会 schedule 刷新。
const shouldWatchForRepaint = false;
if (!shouldRetryForPending && !shouldWatchForRepaint) {
clearPersistedRecallMessageUiObserver();