# settings_ui: Allow changing settings scope inside sub-pages \(\#58698\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 104d6e46f836e4538fd9af3131040b253dac6ed1

Requested commit: 104d6e46f836e4538fd9af3131040b253dac6ed1

Commit: 104d6e46f836e4538fd9af3131040b253dac6ed1

Tree: b93dd45dbdaa8385ecc4819a3bb4c2b65f75e87e

Author: MartinYe1234

Committer: GitHub

## Message

```
settings_ui: Allow changing settings scope inside sub-pages (#58698)

The settings UI previously required selecting a settings scope (User /
project) before entering a sub-page; the scope picker disappeared once
inside. This makes the scope switchable from within sub-pages.

- The scope segment of the sub-page breadcrumb (e.g. "User / AI / Agent
Configuration / Skills") is now a dropdown listing all scopes the
sub-page supports (filtered by the sub-page's file mask, intersected
across the sub-page stack). Selecting a scope re-renders the sub-page in
place — e.g. the Skills page swaps between global and project-local
skills.
- The sub-page stack is preserved across scope changes when every
sub-page in it is valid in the new scope; otherwise it falls back to the
regular navigation behavior.
- Sub-pages that only support one scope (Tool Permissions, Configure
Providers, Feature Flags) keep the static label.
- Entering a sub-page now clears the settings search bar so sub-pages
show all their items (settings deep links that prefill the search are
unaffected).

Closes AI-343

Release Notes:

- Improved the settings window: sub-pages such as Skills and
per-language settings now have a scope picker in the breadcrumb, so you
can switch between User and project settings without leaving the page.

---------

Co-authored-by: Danilo Leal <daniloleal09@gmail.com>
```

## Parents

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

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