Skip to content

Conversation

@bhavyaus
Copy link
Contributor

No description provided.

Copilot AI review requested due to automatic review settings January 29, 2026 04:35
@vs-code-engineering vs-code-engineering bot added this to the January 2026 milestone Jan 29, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the context management defaults for Anthropic's Messages API to match Anthropic's official default values. The changes remove a hardcoded defaults constant and inline the default values directly where they're used, simplifying the code while adjusting default behavior.

Changes:

  • Increased the triggerValue default from 80,000 to 100,000 input tokens to align with Anthropic's recommendations
  • Changed the clearInputs default from true to false, meaning tool inputs will no longer be cleared by default
  • Removed the default value for clearAtLeastTokens (previously 10,000), making it optional unless explicitly configured

@bhavyaus bhavyaus enabled auto-merge January 29, 2026 04:42
@bhavyaus bhavyaus added this pull request to the merge queue Jan 29, 2026
Merged via the queue into main with commit ffcb69e Jan 29, 2026
19 checks passed
@bhavyaus bhavyaus deleted the dev/bhavyau/default-context-editing branch January 29, 2026 05:37
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