# git_ui: Add starts_open setting to git panel \(\#51601\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 00bee4515e2c69fbcedcb7032420ce9dafce6aa7

Requested commit: 00bee4515e2c69fbcedcb7032420ce9dafce6aa7

Commit: 00bee4515e2c69fbcedcb7032420ce9dafce6aa7

Tree: 62160c810b96b0496334b3c3df05558a65457ff2

Author: Matt Van Horn

Committer: GitHub

## Message

````
git_ui: Add starts_open setting to git panel (#51601)

Fixes #51542

Adds a `git_panel.starts_open` setting for parity with `project_panel`.
When set to `true`, the git panel opens automatically in new workspaces
that don't have saved panel state.

The default is `false`, matching current behavior (non-breaking).

### Usage

```json
{
  "git_panel": {
    "starts_open": true
  }
}
```

### Implementation

Follows the same pattern as `project_panel.starts_open`:

1. `GitPanelSettingsContent` - added `starts_open: Option<bool>` to the
settings schema
2. `GitPanelSettings` - added `starts_open: bool` field
3. `GitPanel` Panel impl - overrides `starts_open()` to read from
settings

Release Notes:

- Added `git_panel.starts_open` setting to control whether the git panel
opens automatically in new workspaces (default: false)

---------

Co-authored-by: Matt Van Horn <455140+mvanhorn@users.noreply.github.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
````

## Parents

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

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