mirror of
https://github.com/AgentSeal/codeburn.git
synced 2026-11-29 02:39:13 +00:00
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
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:
parent
2fc62f7876
commit
dd2d7d1b48
2 changed files with 24 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue