Skip to content

update_settings_file deletes settings if settings file needs to be migrated #41344

@yeskunall

Description

@yeskunall

Summary

Zed overwrites Agent settings when choosing a different LLM from the Agent Panel.

Description

I have my Agent Panel docked to the left and my settings file needs an auto-migration, as it uses deprecated settings. When I choose a different model from the Agent Panel, Zed overwrites all settings related to it.

Steps to reproduce:

  1. Modify the agent key in root settings.json (set dock to left)
  2. Open Agent Panel
  3. Choose a different model than the default one

Expected Behavior:
Zed should use the chosen model, only overwrite the default_model key and not update the remaining user settings defined in agent key.

Actual Behavior:
Zed overwrites all settings pertaining to the agent key. This behavior occurs even if you don’t have a default model set.

Screen capture
blog.settings.json.2025-10-28.01.46.43.mp4

Zed Version and System Specs

Zed: v0.209.6 (Zed)
OS: macOS 15.7
Memory: 18 GiB
Architecture: aarch64

Metadata

Metadata

Assignees

Labels

.contrib/good second issueIssue suitable for a repeat contributorarea:settingsFeedback for preferences, configuration, etcmeta:easy repro stepsSteps to reproduce are easynever staleto keep the stalebot awaypriority:P2Average run-of-the-mill bugsstate:reproducibleVerified steps to reproduce included and someone on the team managed to reproduce

Type

No fields configured for Bug.

Projects

Status

Bug Bashers

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions