mirror of
https://github.com/Youzini-afk/ST-Bionic-Memory-Ecology.git
synced 2026-05-15 22:30:38 +08:00
fix: guard luker panel graph load retries
This commit is contained in:
4
index.js
4
index.js
@@ -8989,6 +8989,10 @@ function shouldSyncGraphLoadFromLiveContext(
|
||||
|
||||
function syncGraphLoadFromLiveContext(options = {}) {
|
||||
const { source = "live-context-sync", force = false } = options;
|
||||
const attemptIndex = Math.max(
|
||||
0,
|
||||
Math.floor(Number(options?.attemptIndex) || 0),
|
||||
);
|
||||
const context = getContext();
|
||||
syncCommitMarkerToPersistenceState(context);
|
||||
if (!shouldSyncGraphLoadFromLiveContext(context, { force })) {
|
||||
|
||||
Reference in New Issue
Block a user