Silence BME during MVU extra analysis retry

This commit is contained in:
Hao19911125
2026-04-11 20:47:46 +08:00
parent ea94ec0cad
commit ddbd4c3c61
2 changed files with 75 additions and 0 deletions

View File

@@ -358,6 +358,11 @@ export function onMessageDeletedController(
}
export function onMessageEditedController(runtime, messageId, meta = null) {
if (runtime.isMvuExtraAnalysisGuardActive?.()) {
console.debug?.("[ST-BME] skip: mvu-extra-analysis hook=MESSAGE_EDITED");
runtime.refreshPersistedRecallMessageUi?.();
return;
}
runtime.invalidateRecallAfterHistoryMutation("消息已编辑");
runtime.scheduleHistoryMutationRecheck("message-edited", messageId, meta);
runtime.refreshPersistedRecallMessageUi?.();
@@ -414,6 +419,13 @@ export async function onGenerationAfterCommandsController(
return;
}
if (runtime.isMvuExtraAnalysisGuardActive?.()) {
console.debug?.(
"[ST-BME] skip: mvu-extra-analysis hook=GENERATION_AFTER_COMMANDS",
);
return;
}
const generationType = String(type || "normal").trim() || "normal";
const frozenInputSnapshot =
generationType === "normal"
@@ -530,6 +542,16 @@ export async function onBeforeCombinePromptsController(
};
}
if (runtime.isMvuExtraAnalysisGuardActive?.()) {
console.debug?.(
"[ST-BME] skip: mvu-extra-analysis hook=GENERATE_BEFORE_COMBINE_PROMPTS",
);
return {
skipped: true,
reason: "mvu-extra-analysis",
};
}
const frozenInputSnapshot =
runtime.consumeHostGenerationInputSnapshot?.() ||
runtime.getPendingHostGenerationInputSnapshot?.() ||