Skip to content

SCA-333: Windows memory extraction default cadence 600s → 1800s - #11767

Merged
Git-on-my-level merged 1 commit into
mainfrom
agent/m1-studio-cursor-grok-4-6/6c4b1b23
Aug 18, 2026
Merged

Git-on-my-level merged 1 commit into
mainfrom
agent/m1-studio-cursor-grok-4-6/6c4b1b23

Conversation

@Git-on-my-level

@Git-on-my-level Git-on-my-level commented Aug 17, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Raise the Windows memory-extraction default interval from 10 minutes (600s) to 30 minutes (1800s), matching the macOS change that already landed in Fit desktop Gemini demand under the Vertex PT cap: evict low-value lanes to Flash-Lite, fix the Pro demotion, cap server-paid output #11764 (feat(desktop/macos): memory extraction default cadence 600s -> 1800s).
  • This is a default change, not a migration: an already-persisted memoryExtractionIntervalMin (including a user who still has the old 10) is kept as-is. Junk/absent values fall back to 30.
  • Windows does not surface this interval in Settings (Notifications only has the memory toggle), so there is no picker ladder to extend. 30 is a valid positive-integer minute under the existing sanitizer.

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 generateContent calls). 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

  • sanitizeCooldownMinutes now takes an optional fallback (Focus/Task stay at 10; Memory uses 30).
  • memoryAssistant.effectiveIntervalMs defensive fallback follows the new default.
  • Tests: absent/junk → 30; explicit 10 and 15 survive sanitize; disk round-trip of an explicit 10 survives an unrelated later write; assistant cadence uses 30 min → 1_800_000 ms.

Test plan

  • pnpm exec vitest run src/main/appSettings.test.ts src/main/assistants/memory/memoryAssistant.test.ts — 29 passed
  • pnpm test (Node 22.21.1) — 5220 passed, 33 skipped
  • make preflight — 11 checks passed
  • Could not exercise the real Windows Settings UI (this run is on macOS). The interval is not shown in the Notifications tab; only the memory toggle is. Confirm on a Windows build that a fresh profile extracts every 30 min and a profile with memoryExtractionIntervalMin: 10 already on disk stays at 10.

Commands run

export PATH="/opt/homebrew/opt/node@22/bin:$PATH"   # v22.21.1
pnpm install --ignore-scripts --frozen-lockfile
pnpm exec vitest run src/main/appSettings.test.ts src/main/assistants/memory/memoryAssistant.test.ts
# Test Files  2 passed (2) / Tests  29 passed (29)

pnpm test
# Test Files  542 passed | 6 skipped (548)
# Tests  5220 passed | 33 skipped (5253)

make setup
make preflight
# PR preflight passed: 11 checks in 196.25s
scripts/pr-preflight --suggest
# Product invariants affected: none
# No fix: commits; no Failure-Class declaration required

Review in cubic

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]>
@Git-on-my-level
Git-on-my-level merged commit 150cfe7 into main Aug 18, 2026
35 checks passed
@Git-on-my-level
Git-on-my-level deleted the agent/m1-studio-cursor-grok-4-6/6c4b1b23 branch August 18, 2026 00:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant