fix: never hold back a save for any durable-source provider (#1514)
Some checks are pending
CI / semgrep (push) Waiting to run
macOS Menubar CI / test (push) Waiting to run
Tests / desktop (push) Waiting to run
Tests / test (22) (push) Waiting to run
Tests / test (22.13.0) (push) Waiting to run
Tests / test (24) (push) Waiting to run
Tests / test (26) (push) Waiting to run
Tests / test-platforms (macos-latest) (push) Waiting to run
Tests / test-platforms (windows-latest) (push) Waiting to run

This commit is contained in:
Resham Joshi 2026-09-21 00:38:33 +02:00 • committed by GitHub
parent 2fc62f7876
commit dd2d7d1b48
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 24 additions and 1 deletions

View file

@ -650,7 +650,7 @@ export function isCacheDirty(cache: SessionCache): boolean {
* held back by the resident process's coalescing. */
export function hasDirtyDurableProvider(cache: SessionCache): boolean {
for (const provider of stateOf(cache).dirtyBuckets.keys()) {
if (DURABLE_PROVIDER_NAMES.has(provider)) return true
if (DURABLE_PROVIDER_NAMES.has(provider) || cache.providers[provider]?.durable) return true
}
return false
}