Skip to content

Add eagerness option for diffpatch prompt - #327544

Merged
Ulugbek Abdullaev (ulugbekna) merged 11 commits into
microsoft:mainfrom
bstee615:chat-xtab-aggressiveness-tag
Aug 19, 2026
Merged

Add eagerness option for diffpatch prompt#327544
Ulugbek Abdullaev (ulugbekna) merged 11 commits into
microsoft:mainfrom
bstee615:chat-xtab-aggressiveness-tag

Conversation

@bstee615

@bstee615 Benjamin Steenhoek (bstee615) commented Jul 26, 2026

Copy link
Copy Markdown
Member

Add the eagernessPrompt model configuration mode for adding high/low aggression tags in PatchBased02 prompts. Medium aggressiveness is untagged.

I implemented this as an option rather than a new prompting strategy because it applies to any diffpatch prompting strategy. I didn't backport to support xtab275-based strategies because the insertion location is different and those prompts will be phased out, so backporting it would cause more risk without much apparent benefit.

Copilot AI review requested due to automatic review settings July 26, 2026 20:19

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

Adds configurable high/low eagerness tags to PatchBased02 prompts.

Changes:

  • Adds and validates eagernessPrompt.
  • Renders aggression tags for high/low settings.
  • Adds configuration and prompt tests.
Show a summary per file
File Description
xtabPromptOptions.ts Defines, validates, and detects eagerness prompting.
xtabPromptOptions.spec.ts Tests validation and detection.
promptCrafting.ts Adds aggression tags to PatchBased02 prompts.
promptCrafting.spec.ts Tests tag rendering and placement.
xtabProvider.ts Propagates configuration and adjusts debounce behavior.
xtabProvider.spec.ts Updates system-prompt test coverage.

Review details

  • Files reviewed: 6/6 changed files
  • Comments generated: 3
  • Review effort level: Medium
Comment thread extensions/copilot/src/extension/xtab/common/promptCrafting.ts
Comment thread extensions/copilot/src/platform/inlineEdits/common/dataTypes/xtabPromptOptions.ts Outdated
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
auto-merge was automatically disabled August 19, 2026 18:56

Pull request was closed

@ulugbekna
Ulugbek Abdullaev (ulugbekna) merged commit 8041c5c into microsoft:main Aug 19, 2026
49 of 51 checks passed
@vs-code-engineering vs-code-engineering Bot added this to the 1.135.0 milestone Aug 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

7 participants