Files
vscode/extensions/copilot/src
Bhavya U c78e004e28 Warm-cache gate for inline background summarization (#311047)
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.
2026-04-17 14:14:51 -04:00
..