# agent_servers: Fix Claude Agent model resetting to default \(\#51587\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 70a5669842378e9259eabf24c6b5d89c0b950769

Requested commit: 70a5669842378e9259eabf24c6b5d89c0b950769

Commit: 70a5669842378e9259eabf24c6b5d89c0b950769

Tree: 66e692b640562f133766ee3cdd0d47e9c09db4a6

Author: Om Chillure

Committer: GitHub

## Message

```
agent_servers: Fix Claude Agent model resetting to default (#51587)

#### Fixes #51082

#### Description :

When a user configures `default_config_options` (e.g. a specific model)
for an ACP agent, the setting was only applied when creating a new
session. Resuming or loading an existing session (e.g. from history)
skipped this step, causing the model dropdown to revert to "Default
(recommended)".

#### Fix : 

Extract the config options defaulting logic into a shared helper
apply_default_config_options and call it consistently across all three
session entry points: new_session, resume_session, and load_session
Release Notes:

#### Release notes :
Fixed model dropdown resetting to "Default (recommended)" when opening a
previous conversation from history. Configured models (via
default_config_options) are now correctly applied when resuming or
loading existing sessions.


#### Video :
[Screencast from 2026-03-15
12-55-58.webm](https://github.com/user-attachments/assets/977747b9-390c-4f78-91fc-91feace444e1)
```

## Parents

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

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