Skip to content

Set default NES aggressiveness to medium - #327049

Merged
Ulugbek Abdullaev (ulugbekna) merged 2 commits into
microsoft:mainfrom
bstee615:chat-xtab-aggressiveness-medium
Jul 30, 2026
Merged

Ulugbek Abdullaev (ulugbekna) merged 2 commits into
microsoft:mainfrom
bstee615:chat-xtab-aggressiveness-medium

Conversation

@bstee615

@bstee615 Benjamin Steenhoek (bstee615) commented Jul 22, 2026 •

Copy link
Copy Markdown
Member

Context

Adaptive mode (chat.advanced.inlineEdits.xtabProvider.aggressivenessLevel=undefined, default setting before this PR) hasn't been validated, so we don't want to set it as the default for rollouts. VS Code rollout for pandia-4 needed to set this default with ExP. VS will roll out this feature soon; we'd like to make it so they have the desired default setting in chatlib when they roll out.

This does not change the default for nextEditSuggestions.eagerness, the user-facing setting. It's only used to configure the prompt for aggressiveness prompting strategies.


Copilot-written description:

Summary

  • default chat.advanced.inlineEdits.xtabProvider.aggressivenessLevel to medium
  • preserve explicit nextEditSuggestions.eagerness precedence and adaptive-mode coverage
  • tests to verify the internal aggressiveness level affects aggressiveness prompt strategies only
  • tests to verify default user eagerness does not alter eagerness setting-based timing for non-aggressiveness strategies

Testing

  • npx tsc --noEmit --project tsconfig.json
  • npx vitest --run --pool=forks src/extension/inlineEdits/test/common/userInteractionMonitor.spec.ts (21 passed)
  • npx vitest --run --pool=forks src/extension/xtab/test/node/xtabProvider.spec.ts -t "applies configured aggressiveness|does not change timing" (2 passed; local Vitest also reports two unhandled model-metadata cache errors because Git LFS cache-layer fixtures are pointers in this checkout)
  • VS Code hygiene check on changed files

Copilot AI review requested due to automatic review settings July 22, 2026 20:12

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

Sets the default NES aggressiveness to medium while preserving user eagerness precedence and adaptive-mode tests.

Changes:

  • Defaults internal aggressiveness to medium.
  • Expands precedence and prompt-strategy coverage.
  • Verifies default eagerness does not alter non-aggressiveness timing.
Show a summary per file
File Description
configurationService.ts Changes the default aggressiveness level.
xtabProvider.spec.ts Tests prompt and timing behavior.
userInteractionMonitor.spec.ts Updates default, precedence, and adaptive tests.

Review details

  • Files reviewed: 3/3 changed files
  • Comments generated: 0
  • Review effort level: Medium

@ulugbekna
Ulugbek Abdullaev (ulugbekna) force-pushed the chat-xtab-aggressiveness-medium branch from a61445e to 477be89 Compare July 30, 2026 08:13

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.

lgtm, thanks!

@ulugbekna
Ulugbek Abdullaev (ulugbekna) merged commit d9d6728 into microsoft:main Jul 30, 2026
29 checks passed
@vs-code-engineering vs-code-engineering Bot added this to the 1.132.0 milestone Jul 30, 2026
@vs-code-engineering vs-code-engineering Bot locked and limited conversation to collaborators Sep 13, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants