mirror of
https://github.com/Youzini-afk/ST-Bionic-Memory-Ecology.git
synced 2026-05-15 22:30:38 +08:00
fix: harden metadata readiness and add persistence self-heal reconcile
This commit is contained in:
@@ -263,6 +263,17 @@ export async function onBeforeCombinePromptsController(runtime) {
|
||||
}
|
||||
|
||||
export function onMessageReceivedController(runtime) {
|
||||
const loadState = runtime.getGraphPersistenceState?.()?.loadState || "";
|
||||
if (
|
||||
loadState === "loading" ||
|
||||
loadState === "shadow-restored" ||
|
||||
loadState === "blocked"
|
||||
) {
|
||||
runtime.syncGraphLoadFromLiveContext?.({
|
||||
source: "message-received-reconcile",
|
||||
});
|
||||
}
|
||||
|
||||
if (runtime.getCurrentGraph()) {
|
||||
if (
|
||||
runtime.getGraphPersistenceState()?.pendingPersist &&
|
||||
|
||||
Reference in New Issue
Block a user