mirror of
https://github.com/Youzini-afk/ST-Bionic-Memory-Ecology.git
synced 2026-06-14 02:40:45 +08:00
fix: MESSAGE_SENT 时把召回记录重绑到刚入场的 user 楼层(对齐酒馆 GENERATION_AFTER_COMMANDS 早于 sendMessageAsUser)
Made-with: Cursor
This commit is contained in:
@@ -261,6 +261,10 @@ export function onMessageSentController(runtime, messageId) {
|
||||
resolvedMessageId,
|
||||
message.mes || "",
|
||||
);
|
||||
// GENERATION_AFTER_COMMANDS 在 sendMessageAsUser 之前触发,此时新用户消息
|
||||
// 尚未进入 chat,recall 记录会被写到上一条 user 上。这里用户消息刚入场,
|
||||
// transaction 仍在桥接窗口内,立即把记录重新绑定到正确的楼层。
|
||||
runtime.rebindRecallRecordToNewUserMessage?.(resolvedMessageId);
|
||||
runtime.refreshPersistedRecallMessageUi?.();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user