mirror of
https://github.com/Youzini-afk/ST-Bionic-Memory-Ecology.git
synced 2026-05-15 22:30:38 +08:00
Silence BME during MVU extra analysis retry
This commit is contained in:
@@ -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?.() ||
|
||||
|
||||
Reference in New Issue
Block a user