mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-15 04:41:00 +01:00
f91303fbde
* Freeze customizations-index per conversation to stabilize system prompt cache Adds the experimental `github.copilot.chat.freezeCustomizationsIndex` setting (advanced/experimental/onExp, default false). When on, the bundled <instructions>/<skills>/<agents> listing in the system prompt is snapshotted on the first turn and reused on every subsequent turn, preventing per-turn churn (mode swap rewriting the active subagent in <agents>, async experimentation flipping a when-gated skill in or out) from invalidating the system prompt cache. When the live listing drifts from the snapshot, the updated set is appended to the latest user message inside AgentUserMessage's context tag — kept inside the captured RenderedUserMessageMetadata so the historical user message replays byte-identically on later turns. Drift also fires with an empty value when the live variable disappears, so the model gets a signal that previously-listed entries are gone. Fixes #315408 Fixes #316182 * Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>