mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-20 23:29:57 +01:00
c78e004e28
Adds a pure helper shouldKickOffBackgroundSummarization that gates the post-render background compaction trigger based on prompt-cache warmth: - inline + warm cache (toolCallRounds.length > 0): jittered threshold in [0.78, 0.82) straddling the historical 0.80 edge. - inline + cold cache: emergency kick-off at >= 0.90 to keep long-running sessions from hitting sync foreground compaction. - non-inline: unchanged >= 0.80. The rng is injected via a private field so tests are deterministic and the warm-only jitter path is exercised without touching Math.random.