Skip to content

Pin complete Copilot request bodies in prompt snapshots - #332037

Merged
Bhavya U (bhavyaus) merged 2 commits into
mainfrom
dev/bhavyau/pin-copilot-request-bodies
Aug 22, 2026
Merged

Pin complete Copilot request bodies in prompt snapshots#332037
Bhavya U (bhavyaus) merged 2 commits into
mainfrom
dev/bhavyau/pin-copilot-request-bodies

Conversation

@bhavyaus

Copy link
Copy Markdown
Collaborator

Pins each Copilot model request body in full instead of rendering a hand-picked subset, so new body fields surface in snapshot diffs. Keeps HTTP metadata out of scope and adds guard coverage for malformed request shapes.

Tests: ./scripts/test-integration.sh --run src/vs/platform/agentHost/test/node/e2e/providers/copilotPromptsE2E.integrationTest.ts

Copilot AI balanced review requested due to automatic review settings August 21, 2026 20:49

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.

Pull request overview

Pins complete Copilot model request bodies in snapshots while normalizing volatile values and guarding malformed captures.

Changes:

  • Serializes full request bodies as formatted JSON.
  • Adds shape validation and normalization tests.
  • Updates documentation and Claude 4.6 baselines.
Show a summary per file
File Description
e2e/README.md Documents full-body snapshots and exclusions.
copilotPromptsE2E.integrationTest.ts Implements formatting, normalization, and guards.
…claude-sonnet-4_6.prompt.md Updates the Sonnet 4.6 baseline.
…claude-opus-4_6.prompt.md Updates the Opus 4.6 baseline.

Review details

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

  • Files reviewed: 11/21 changed files
  • Comments generated: 0
  • Review effort level: Balanced

@bhavyaus
Bhavya U (bhavyaus) enabled auto-merge (squash) August 21, 2026 20:57
@bhavyaus
Bhavya U (bhavyaus) force-pushed the dev/bhavyau/pin-copilot-request-bodies branch from bfb8b10 to 560f09c Compare August 21, 2026 21:06
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@bhavyaus
Bhavya U (bhavyaus) force-pushed the dev/bhavyau/pin-copilot-request-bodies branch from 560f09c to 718354d Compare August 22, 2026 04:22
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@bhavyaus
Bhavya U (bhavyaus) merged commit 1be3e73 into main Aug 22, 2026
27 checks passed
@bhavyaus
Bhavya U (bhavyaus) deleted the dev/bhavyau/pin-copilot-request-bodies branch August 22, 2026 04:56
@vs-code-engineering vs-code-engineering Bot added this to the 1.135.0 milestone Aug 22, 2026
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.

5 participants