Skip to content

Add PatchBased02UnifiedEagerness prompt strategy - #333302

Merged
Ulugbek Abdullaev (ulugbekna) merged 1 commit into
microsoft:mainfrom
bstee615:bstee615-add-four-in-one-strategy
Sep 8, 2026
Merged

Add PatchBased02UnifiedEagerness prompt strategy#333302
Ulugbek Abdullaev (ulugbekna) merged 1 commit into
microsoft:mainfrom
bstee615:bstee615-add-four-in-one-strategy

Conversation

@bstee615

@bstee615 Benjamin Steenhoek (bstee615) commented Aug 29, 2026

Copy link
Copy Markdown
Member

Add the standalone PatchBased02UnifiedEagerness prompting strategy -- clone of PatchBased02Unified with eagernessPrompt: "aggressionHighLow".

Depends on #333606

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 review overview

Review tier: Balanced
Findings: 1 High severity · 1 Low severity

New issues introduced by this change (2)
Severity Finding
High severity extensions/​copilot/​src/​platform/​inlineEdits/​common/​dataTypes/​xtabPromptOptions.ts — This standalone strategy does not inherit the configuration baked into PatchBased02Optimized; it…
Low severity extensions/​copilot/​src/​platform/​inlineEdits/​test/​common/​xtabPromptOptions.spec.ts — The same assertion is executed twice, so the second line adds no coverage and may conceal an…
What changed in this PR

Adds a standalone four-in-one eagerness prompting strategy for inline edits and applies strategy configuration during default-model retries.

Changes:

  • Adds and configures PatchBased02OptimizedFourInOne.
  • Supports its prompt construction, response format, and system prompt.
  • Adds focused configuration, prompt, and retry tests.
File Description
xtabPromptOptions.ts Defines and configures the strategy.
xtabPromptOptions.spec.ts Tests strategy configuration.
xtabProvider.ts Applies configuration on fallback and selects its prompt.
xtabProvider.spec.ts Tests propagation and fallback behavior.
promptCrafting.ts Builds four-in-one prompts.
promptCrafting.spec.ts Tests eagerness-tag placement.

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

Comment thread extensions/copilot/src/platform/inlineEdits/common/dataTypes/xtabPromptOptions.ts Outdated
Comment thread extensions/copilot/src/platform/inlineEdits/test/common/xtabPromptOptions.spec.ts Outdated
@bstee615 Benjamin Steenhoek (bstee615) changed the title Add optimized four-in-one prompt strategy Add optimized eagerness prompt strategy Aug 29, 2026
@bstee615
Benjamin Steenhoek (bstee615) force-pushed the bstee615-add-four-in-one-strategy branch from cd6c7f8 to 762e6c2 Compare August 31, 2026 18:35
@bstee615 Benjamin Steenhoek (bstee615) changed the title Add optimized eagerness prompt strategy Add unified eagerness prompt strategy Aug 31, 2026
@bstee615 Benjamin Steenhoek (bstee615) changed the title Add unified eagerness prompt strategy Add PatchBased02UnifiedEagerness prompt strategy Aug 31, 2026
Add the standalone PatchBased02UnifiedEagerness strategy as a clone of PatchBased02Unified with the aggressionHighLow eagerness prompt. Apply strategy configuration to default-model retries and cover prompt construction, response format, and configuration propagation.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@ulugbekna
Ulugbek Abdullaev (ulugbekna) force-pushed the bstee615-add-four-in-one-strategy branch from 2ccfe4f to 4b37dd2 Compare September 7, 2026 15:22
@ulugbekna Ulugbek Abdullaev (ulugbekna) added this to the 1.137.0 milestone Sep 7, 2026
@ulugbekna Ulugbek Abdullaev (ulugbekna) added the ~release-cherry-pick Trigger: cherry-pick this PR to the latest release branch label Sep 7, 2026
@ulugbekna
Ulugbek Abdullaev (ulugbekna) marked this pull request as ready for review September 7, 2026 15:32
@vs-code-engineering

Copy link
Copy Markdown
Contributor

This PR will be automatically cherry-picked to release/1.137 when merged.

@ulugbekna Ulugbek Abdullaev (ulugbekna) removed the ~release-cherry-pick Trigger: cherry-pick this PR to the latest release branch label Sep 7, 2026
@ulugbekna
Ulugbek Abdullaev (ulugbekna) merged commit 6934916 into microsoft:main Sep 8, 2026
33 checks passed
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.

6 participants