# agent2: Fix model deduplication to use provider ID and model ID \(\#37088\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/24ee98b3e13a164e0c9403963787951dc069f661)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 24ee98b3e13a164e0c9403963787951dc069f661

Requested commit: 24ee98b3e13a164e0c9403963787951dc069f661

Commit: 24ee98b3e13a164e0c9403963787951dc069f661

Tree: b75d16f3851281310ee78c4033290dd7160d5e01

Author: Umesh Yadav

Committer: GitHub

## Message

```
agent2: Fix model deduplication to use provider ID and model ID (#37088)

Closes #37043

Previously claude sonnet 4 was missing from copilot as it was colliding
with zed's claude-sonnet-4 model id. Now we do deduplication based upon
model and provider id both.

| Before | After |
|--------|--------|
| <img width="784" height="950" alt="CleanShot 2025-08-28 at 18 31
28@2x"
src="https://github.com/user-attachments/assets/d49d5a17-7271-417d-bb5e-bc380071e810"
/> | <img width="720" height="876" alt="CleanShot 2025-08-28 at 18 31
42@2x"
src="https://github.com/user-attachments/assets/a5100c05-994e-4e19-ab20-34c0258b977c"
/> |

Release Notes:

- Fixed an issue where models with the same ID from different providers
(such as Claude Sonnet 4 from both Zed and Copilot) were incorrectly
deduplicated in the model selector—now all variants are shown.
```

## Parents

- [213ee32b94ceeb2662f498e8e47181511bb07fb3](https://git.cafe/gitcafe/zed/commit/213ee32b94ceeb2662f498e8e47181511bb07fb3?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/24ee98b3e13a164e0c9403963787951dc069f661?format=markdown)
