Skip to content

Add PatchBased02UnifiedEagerness prompt strategy - #333302

Draft
Benjamin Steenhoek (bstee615) wants to merge 5 commits into
microsoft:mainfrom
bstee615:bstee615-add-four-in-one-strategy
Draft

Add PatchBased02UnifiedEagerness prompt strategy#333302
Benjamin Steenhoek (bstee615) wants to merge 5 commits 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 on lines +835 to +837
[PromptingStrategy.PatchBased02OptimizedFourInOne]: {
eagernessPrompt: 'aggressionHighLow',
},
Comment on lines +182 to +183
expect(isEagernessPrompt(options)).toBe(true);
expect(isEagernessPrompt(options)).toBe(true);
@bstee615 Benjamin Steenhoek (bstee615) changed the title Add optimized four-in-one prompt strategy Add optimized eagerness prompt strategy Aug 29, 2026
Treat the optimized PatchBased02 unified strategy as eagerness-aware when a model supplies an eagerness prompt, while preserving non-eagerness behavior for unrelated strategies.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Add the standalone PatchBased02OptimizedEagerness strategy and apply its configuration on default-model retries.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 13bd697b-ebe3-4c55-a34e-58dcf027cad6
@bstee615
Benjamin Steenhoek (bstee615) force-pushed the bstee615-add-four-in-one-strategy branch from cd6c7f8 to 762e6c2 Compare August 31, 2026 18:35
Define PatchBased02UnifiedEagerness from the exact Unified configuration with eagernessPrompt as its sole difference.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 13bd697b-ebe3-4c55-a34e-58dcf027cad6
@bstee615 Benjamin Steenhoek (bstee615) changed the title Add optimized eagerness prompt strategy Add unified eagerness prompt strategy Aug 31, 2026
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 13bd697b-ebe3-4c55-a34e-58dcf027cad6
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 13bd697b-ebe3-4c55-a34e-58dcf027cad6
@bstee615 Benjamin Steenhoek (bstee615) changed the title Add unified eagerness prompt strategy Add PatchBased02UnifiedEagerness prompt strategy Aug 31, 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.

3 participants