# Reset panel saved size when default_size changes \(\#61855\) · gitcafe/zed

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

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

Visibility: public

Requested revision: a5615f092d82acde9accf56e675ba0c6444bd1fe

Requested commit: a5615f092d82acde9accf56e675ba0c6444bd1fe

Commit: a5615f092d82acde9accf56e675ba0c6444bd1fe

Tree: b9def205e364138c298d21708b4b603a2ef0273d

Author: Tai Nguyen

Committer: GitHub

## Message

```
Reset panel saved size when default_size changes (#61855)

Closes #59235

When a panel's `default_size` changes (e.g. `git_panel.default_width` is
edited in settings), the persisted per-workspace size is now cleared so
the new default takes effect immediately. Previously the saved dragged
size took precedence forever, making `default_width` effectively useless
after the first manual resize.

This fix is at the Dock level (`crates/workspace/src/dock.rs`), so it
applies to all panels — Git Panel, Project Panel, Terminal Panel, etc.

Release Notes:

- Fixed panel `default_width` setting being ignored after manually
resizing the panel


https://github.com/user-attachments/assets/97ef69b2-387f-4e29-bc4c-0f336f24eb0b
```

## Parents

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

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