mirror of
https://github.com/Youzini-afk/ST-Bionic-Memory-Ecology.git
synced 2026-06-14 02:40:45 +08:00
fix(recall): drive reroll reuse from host generation context
This commit is contained in:
@@ -188,6 +188,12 @@ function resolveReusablePersistedRecallRecord(chat, recallInput, runtime) {
|
||||
boundUserFloorText &&
|
||||
currentUserFloorText === boundUserFloorText,
|
||||
);
|
||||
const recordRecallInputMismatch = Boolean(
|
||||
recordRecallInput &&
|
||||
currentUserFloorText &&
|
||||
currentUserFloorText !== recordRecallInput &&
|
||||
currentRecallInputText !== recordRecallInput,
|
||||
);
|
||||
const boundUserFloorMismatch = Boolean(
|
||||
boundUserFloorText && currentUserFloorText !== boundUserFloorText,
|
||||
);
|
||||
@@ -199,6 +205,7 @@ function resolveReusablePersistedRecallRecord(chat, recallInput, runtime) {
|
||||
const canReuseUnboundTargetRecord = Boolean(
|
||||
currentUserFloorText &&
|
||||
!boundUserFloorText &&
|
||||
!recordRecallInput &&
|
||||
!isActiveInputSource &&
|
||||
String(record?.injectionText || "").trim(),
|
||||
);
|
||||
@@ -212,6 +219,7 @@ function resolveReusablePersistedRecallRecord(chat, recallInput, runtime) {
|
||||
const canTrustUserFloorRecord = Boolean(
|
||||
(!isActiveInputSource || isNoNewUserGeneration) &&
|
||||
!boundUserFloorText &&
|
||||
!recordRecallInputMismatch &&
|
||||
(generationType !== "normal" || userFloorSources.has(recallSource)),
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user