# settings_ui: Gate CLI open behavior setting on feature flag \(\#53964\) · gitcafe/zed

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

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

Visibility: public

Requested revision: bc84d80ea78c30406a07455db486e166ee89737e

Requested commit: bc84d80ea78c30406a07455db486e166ee89737e

Commit: bc84d80ea78c30406a07455db486e166ee89737e

Tree: 8d1af50b40ccffd79aecec31652f820be34b11f1

Author: Eric Holk

Committer: GitHub

## Message

```
settings_ui: Gate CLI open behavior setting on feature flag (#53964)

The `cli_default_open_behavior` setting controls how `zed <path>` opens
directories, but the underlying behavior is gated behind the
`AgentV2FeatureFlag` in `open_listener.rs`. Without the flag enabled,
the setting has no effect — Zed always falls back to `NewWindow`
behavior.

This change gates the settings UI entry behind the same feature flag so
it only appears when the feature is actually active.

**Changes:**
- Converted `general_settings_section()` from a fixed-size array to a
`Vec` so the CLI setting can be conditionally appended
- Added `feature_flags` as a dependency to `settings_ui`

Release Notes:

- N/A
```

## Parents

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

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