Skip to content

Enable extended reasoning for Anthropic models in Copilot#46540

Merged
reflectronic merged 9 commits intozed-industries:mainfrom
reflectronic:copilot-anthropic-reasoning
Mar 8, 2026
Merged

Enable extended reasoning for Anthropic models in Copilot#46540
reflectronic merged 9 commits intozed-industries:mainfrom
reflectronic:copilot-anthropic-reasoning

Conversation

@reflectronic
Copy link
Copy Markdown
Member

@reflectronic reflectronic commented Jan 11, 2026

Fixes #45668

https://github.com/microsoft/vscode-copilot-chat used as a reference for headers and properties we need to set

Before After

Release Notes:

  • Enabled thinking mode when using Anthropic models with Copilot

@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Jan 11, 2026
@filipwiech
Copy link
Copy Markdown

@osiewicz Sorry to ping you, but you've been doing some great Copilot work recently, and this would really improve the experience for Copilot users (for some of us it's the only officially sanctioned LLM provider at work, Microsoft's roots are clenched deep inside the corporate soul 😉). Zed's Agent is great, but the lack of Sonnet/Opus reasoning is a bummer. 👍

@r3pr3ss10n
Copy link
Copy Markdown

@reflectronic Hey! I've built it to test. Good job, thanks!

The only flaw i've found that sometimes it incorrectly reads stream, instead of one thinking block it pushes many.

image

@nesl247
Copy link
Copy Markdown

nesl247 commented Jan 16, 2026

What about for GPT models? With the same issue in Opencode it was discovered to be an issue with them as well. anomalyco/opencode#6864

@somtooo
Copy link
Copy Markdown
Contributor

somtooo commented Jan 22, 2026

What about for GPT models? With the same issue in Opencode it was discovered to be an issue with them as well. anomalyco/opencode#6864

yeah looking at the code this should solve it for all copilot models as the responses and chat completions endpoint were fixed

@somtooo
Copy link
Copy Markdown
Contributor

somtooo commented Jan 22, 2026

@reflectronic Hey! I've built it to test. Good job, thanks!

The only flaw i've found that sometimes it incorrectly reads stream, instead of one thinking block it pushes many.

image

can you say more? not worth merging if theres a bug

@SomeoneToIgnore SomeoneToIgnore added the area:ai Related to Agent Panel, Edit Prediction, Copilot, or other AI features label Jan 22, 2026
@r3pr3ss10n
Copy link
Copy Markdown

@reflectronic Hey! I've built it to test. Good job, thanks!
The only flaw i've found that sometimes it incorrectly reads stream, instead of one thinking block it pushes many.
image

can you say more? not worth merging if theres a bug

haven't encountered any other issues. works fine.

@filipwiech
Copy link
Copy Markdown

@reflectronic, @osiewicz Sorry to ping you, I know you're very busy, but would be really great to get this fix in. It seems rather straightforward and would have significant impact on the quality and usability of the Copilot provider integration. Currently the models are quite nerfed. 🙂

@zelenenka zelenenka added the staff Pull requests authored by a current member of Zed staff label Feb 6, 2026
@filipwiech
Copy link
Copy Markdown

filipwiech commented Feb 20, 2026

Hey, sorry to bump, but it's been a while, any news now that Zed and GitHub Copilot have a formal partnership? 😉

CC @yeskunall

@reflectronic reflectronic force-pushed the copilot-anthropic-reasoning branch from d570abc to 2028eaa Compare March 8, 2026 08:55
@reflectronic
Copy link
Copy Markdown
Member Author

Sorry for the delay in getting this over the line. I've updated the pull request to support the new 'adaptive thinking' in Opus 4.6 as well:

@reflectronic reflectronic enabled auto-merge (squash) March 8, 2026 09:26
@reflectronic reflectronic merged commit dde76cd into zed-industries:main Mar 8, 2026
28 checks passed
@filipwiech
Copy link
Copy Markdown

filipwiech commented Mar 10, 2026

@reflectronic Thank you so much for moving this forward! 👍 The adaptive thinking switcher for the Anthropic models is a great addition as well. Would it be possible to add something similar for the OpenAI models too (reasoning effort, i.e. low, medium, high, xhigh)? 🙂

@yeskunall
Copy link
Copy Markdown
Member

Hey @filipwiech if this is a feature request, it’s best to do so here.

@guiopen
Copy link
Copy Markdown
Contributor

guiopen commented Mar 19, 2026

Hey @filipwiech if this is a feature request, it’s best to do so here.

#51860 (comment)

@udf2457
Copy link
Copy Markdown

udf2457 commented Mar 19, 2026

@yeskunall , not sure how @guiopen 's question is a FR given the above interaction between @nesl247 and @somtooo:

What about for GPT models? With the same issue in Opencode it was discovered to be an issue with them as well. anomalyco/opencode#6864

yeah looking at the code this should solve it for all copilot models as the responses and chat completions endpoint were fixed

@guiopen
Copy link
Copy Markdown
Contributor

guiopen commented Mar 19, 2026

@yeskunall , not sure how @guiopen 's question is a FR given the above interaction between @nesl247 and @somtooo:

What about for GPT models? With the same issue in Opencode it was discovered to be an issue with them as well. anomalyco/opencode#6864

yeah looking at the code this should solve it for all copilot models as the responses and chat completions endpoint were fixed

In 0.228, the reasoning options do not appear for gpt models, just for Claude as the PR name suggest, so @somtooo comment could be a misconception

I created the FR from this suggestion:

Hey @filipwiech if this is a feature request, it’s best to do so here.

@yeskunall
Copy link
Copy Markdown
Member

yeskunall commented Mar 19, 2026

@udf2457 I said this should be a feature request because it is not something that was previously supported in Zed, and it clearly sounds like an improvement, not a bug. Do you have proof that supports otherwise? Then I will create the bug report myself!

+ thanks for chiming in as well @guiopen!

@esamattis
Copy link
Copy Markdown

esamattis commented Mar 25, 2026

There is now bug/feature issue about the Copilot GPT model reasoning here #52140 for anyone wanting to follow it up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:ai Related to Agent Panel, Edit Prediction, Copilot, or other AI features cla-signed The user has signed the Contributor License Agreement staff Pull requests authored by a current member of Zed staff

Projects

None yet

Development

Successfully merging this pull request may close these issues.

GitHub Copilot’s Claude Opus 4.5 doesn’t use reasoning