Skip to content

[cherry-pick] Preserve model attribution for cached inline edits#325718

Merged
kycutler merged 1 commit into
release/1.129from
cherry-pick/325704
Jul 14, 2026
Merged

[cherry-pick] Preserve model attribution for cached inline edits#325718
kycutler merged 1 commit into
release/1.129from
cherry-pick/325704

Conversation

@vs-code-engineering

Copy link
Copy Markdown
Contributor

Cherry-pick of #325704 from main.

Patch-based inline edit cache hits currently report isFromCache = true without modelName or modelConfig. This makes telemetry filtered by prompting strategy appear to have zero patch-model cache hits even though the cache is working.

This change stores only model attribution on cache entries and restores it when emitting cache-hit telemetry. Request-specific prompt, response, latency, usage, and other stateless provider metrics remain unset. The coverage includes regular, subsequent/rebased, speculative, cross-file, and cached no-edit results.

Testing:

  • Type-check the Copilot extension.
  • Run the focused inline edit cache, speculative request, rebase, cursor-distance, and telemetry unit tests.

Copilot AI review requested due to automatic review settings July 13, 2026 23:19
@vs-code-engineering vs-code-engineering Bot added the cherry-pick-artifact Auto-generated cherry-pick PR label Jul 13, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot can't review bot-authored pull requests automatically. A user with Copilot access can request a review manually.

@kycutler kycutler merged commit 634b915 into release/1.129 Jul 14, 2026
29 checks passed
@kycutler kycutler deleted the cherry-pick/325704 branch July 14, 2026 00:13
@vs-code-engineering vs-code-engineering Bot added this to the 1.129.0 milestone Jul 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cherry-pick-artifact Auto-generated cherry-pick PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants