mirror of
https://github.com/Youzini-afk/ST-Bionic-Memory-Ecology.git
synced 2026-05-15 22:30:38 +08:00
fix recall card binding lag
This commit is contained in:
14
index.js
14
index.js
@@ -8802,6 +8802,20 @@ function onGenerationStarted(type, params = {}, dryRun = false) {
|
||||
}
|
||||
|
||||
function onGenerationEnded(_chatLength = null) {
|
||||
const recentTransaction = findRecentGenerationRecallTransactionForChat();
|
||||
const recentRecallResult =
|
||||
getGenerationRecallTransactionResult(recentTransaction);
|
||||
ensurePersistedRecallRecordForGeneration({
|
||||
generationType: recentTransaction?.generationType || "normal",
|
||||
recallResult: recentRecallResult,
|
||||
transaction: recentTransaction,
|
||||
recallOptions: recentTransaction?.frozenRecallOptions || null,
|
||||
hookName:
|
||||
recentRecallResult?.hookName ||
|
||||
recentTransaction?.lastRecallMeta?.hookName ||
|
||||
"",
|
||||
});
|
||||
schedulePersistedRecallMessageUiRefresh(320);
|
||||
if (typeof scheduleMessageHideApply === "function") {
|
||||
scheduleMessageHideApply("generation-ended", 180);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user