fix: guard luker panel graph load retries

This commit is contained in:
Youzini-afk
2026-04-14 22:02:31 +08:00
parent 19ca6f5d9d
commit 4b19e978c7
2 changed files with 45 additions and 0 deletions

View File

@@ -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 })) {