# Rework how we track projects and worktrees in semantic index \(\#2938\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 3b784668c039d31b71708b863b134aa156ec03a1

Requested commit: 3b784668c039d31b71708b863b134aa156ec03a1

Commit: 3b784668c039d31b71708b863b134aa156ec03a1

Tree: b08ed0f5dcb3cb91b8424852665eca82968f3c82

Author: Antonio Scandurra

Committer: GitHub

## Message

```
Rework how we track projects and worktrees in semantic index (#2938)

This pull request introduces several improvements to the semantic search
experience. We're still missing collaboration and searching modified
buffers, which we'll tackle after we take a detour into reducing the
number of tokens used to generate embeddings.

Release Notes:

- Fixed a bug that could prevent semantic search from working when
deploying right after opening a project.
- Fixed a panic that could sometimes occur when using semantic search
while simultaneously changing a file.
- Fixed a bug that prevented semantic search from including new
worktrees when adding them to a project.
```

## Parents

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

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

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