Repository navigation
SCA-333: Windows memory extraction default cadence 600s → 1800s - #11767
Merged
Merged
Conversation
Memory extraction is the worst-value proactive lane on every instrument that exists: 50.5% of macOS notification volume at 0.240% CTR (5x worse than the next-worst lane), ~53 calls per stored memory, ~2% realised dogfood yield. Cut its Windows default timer from 10 to 30 minutes to match Mac. An already-persisted user interval is kept unchanged. Test: appSettings sanitizer pins the 30-min absent-key default and proves an explicit 10-min setting survives (external source: 2026-08-17 workload value ranking, PostHog 30d). Co-authored-by: Cursor <[email protected]> Co-authored-by: multica-agent <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
feat(desktop/macos): memory extraction default cadence 600s -> 1800s).memoryExtractionIntervalMin(including a user who still has the old 10) is kept as-is. Junk/absent values fall back to 30.Closes SCA-333
Why
Memory extraction is the worst-value proactive lane on every instrument that exists: 50.5% of macOS notification volume at 0.240% CTR (5× worse than the next-worst lane), ~1.9% dogfood yield (8 stored memories from ~420 calls). Windows is a meaningful share of desktop Gemini traffic (~23% of flash
generateContentcalls). Tripling the default interval is a deliberate coverage/cost trade.External source for the rewritten expected default: 2026-08-17 workload value ranking (PostHog 30d), same measurement that shipped the macOS 1800s default.
What
sanitizeCooldownMinutesnow takes an optional fallback (Focus/Task stay at 10; Memory uses 30).memoryAssistant.effectiveIntervalMsdefensive fallback follows the new default.Test plan
pnpm exec vitest run src/main/appSettings.test.ts src/main/assistants/memory/memoryAssistant.test.ts— 29 passedpnpm test(Node 22.21.1) — 5220 passed, 33 skippedmake preflight— 11 checks passedmemoryExtractionIntervalMin: 10already on disk stays at 10.Commands run