Skip to content

Add contextWindow to ClaudeModelOptionsPatch#1536

Open
Alexx999 wants to merge 1 commit intopingdotgg:mainfrom
Alexx999:pr-claude-contextWindow
Open

Add contextWindow to ClaudeModelOptionsPatch#1536
Alexx999 wants to merge 1 commit intopingdotgg:mainfrom
Alexx999:pr-claude-contextWindow

Conversation

@Alexx999
Copy link
Copy Markdown
Contributor

@Alexx999 Alexx999 commented Mar 29, 2026

What Changed

Added contextWindow to ClaudeModelOptionsPatch

Why

The option to select Context Window is visible, but broken (selecting anything but default flickers and reverts back)

Checklist

  • This PR is small and focused
  • I explained what changed and why

Note

Low Risk
Low risk schema-only change that expands the server settings patch contract for Claude model options; main risk is minor compatibility issues if consumers assume contextWindow cannot be patched.

Overview
Updates the server settings patch schema so textGenerationModelSelection.options for the claudeAgent provider can include an optional contextWindow field (via ClaudeModelOptionsPatch). This unblocks persisting context window selection through patch updates instead of being dropped during validation/decoding.

Written by Cursor Bugbot for commit f4e3423. This will update automatically on new commits. Configure here.

Note

Add contextWindow field to ClaudeModelOptionsPatch schema

Adds an optional contextWindow property to the ClaudeModelOptionsPatch struct in settings.ts, reusing the field definition from ClaudeModelOptions.

Macroscope summarized f4e3423.

@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Mar 29, 2026

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: b26bed8b-341a-45be-83e0-5a0687f3713a

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions github-actions bot added size:XS 0-9 changed lines (additions + deletions). vouch:unvouched PR author is not yet trusted in the VOUCHED list. labels Mar 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XS 0-9 changed lines (additions + deletions). vouch:unvouched PR author is not yet trusted in the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant