# agent_ui: Don't show root project in path prefix in @\-mention menu \(\#41372\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 54fd7ea699c99b6d2d5e5158a8a6cf5ca4da48a5

Requested commit: 54fd7ea699c99b6d2d5e5158a8a6cf5ca4da48a5

Commit: 54fd7ea699c99b6d2d5e5158a8a6cf5ca4da48a5

Tree: ac10e333ffe2d242419566c1d66be198fe7ea918

Author: Danilo Leal

Committer: GitHub

## Message

```
agent_ui: Don't show root project in path prefix in @-mention menu (#41372)

This PR hides the worktree root name from the path prefix displayed when
you @-mention a file or directory in the agent panel. Given the tight UI
real state we have, I believe that having the project name in there is
redundant—the project you're in is already displayed in the title bar.
Not only it was the very first word you'd see after the file's name, but
it also made the path longer than it needs to. A bit of a design clean
up here :)

(PS: We still show the project name if there are more than one in the
same workspace.)

Release Notes:

- N/A
```

## Parents

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

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