Skip to content

Add eagerness option for diffpatch prompt - #327544

Open
bstee615 wants to merge 6 commits into
microsoft:mainfrom
bstee615:chat-xtab-aggressiveness-tag
Open

Add eagerness option for diffpatch prompt#327544
bstee615 wants to merge 6 commits into
microsoft:mainfrom
bstee615:chat-xtab-aggressiveness-tag

Conversation

@bstee615

Copy link
Copy Markdown
Member

Summary

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

Testing

  • Added tests npx vitest run --no-cache src/extension/xtab/test/common/promptCrafting.spec.ts src/platform/inlineEdits/test/common/xtabPromptOptions.spec.ts

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants