fix: pr-bug-scan validated finding from #2218 (#2257)

Co-authored-by: orca-bug-scan-bot <orca-bug-scan-bot@stably.ai>
This commit is contained in:
buf0-bot[bot] 2026-05-18 14:28:53 -07:00 committed by GitHub
parent 0b60feb9db
commit e2322c7d68
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 1 deletions

View File

@ -131,7 +131,9 @@ export const createDetectedAgentsSlice: StateCreator<AppState, [], [], DetectedA
return get().detectedAgentIds ?? []
})
.finally(() => {
refreshPromise = null
if (refreshPromise?.promise === pending) {
refreshPromise = null
}
})
refreshPromise = { key: contextKey, promise: pending }
return pending