# Persist dev container suggestion dismissal across git worktrees \(\#58576\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 8cf8528e8ae52d534eafc2669781a03e99572047

Requested commit: 8cf8528e8ae52d534eafc2669781a03e99572047

Commit: 8cf8528e8ae52d534eafc2669781a03e99572047

Tree: 6a72a95f43dbe47909ad76ef23de53148134ec70

Author: Richard Feldman

Committer: GitHub

## Message

```
Persist dev container suggestion dismissal across git worktrees (#58576)

Opening a new git worktree of a repository that has a dev container
configuration re-prompted you to reopen in a dev container, even after
you'd clicked "Don't Show Again" in another worktree of the same repo.
The dismissal was keyed on each worktree's own absolute path, so sibling
worktrees never saw the stored choice.

This keys the dismissal on the repository's common Git directory
instead, which is shared across all linked git worktrees of the same
repo, so dismissing in one worktree now suppresses the prompt in the
others. Projects that aren't Git repositories fall back to the worktree
path as before.

Closes AI-357

Release Notes:

- Fixed the "Reopen in Dev Container" suggestion re-appearing in new git
worktrees after choosing "Don't Show Again"
```

## Parents

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

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