# agent: Support remote connection args in thread metadata database \(\#53550\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 377e78b8bf90a64ad868e73684d9a3b50cb1e16c

Requested commit: 377e78b8bf90a64ad868e73684d9a3b50cb1e16c

Commit: 377e78b8bf90a64ad868e73684d9a3b50cb1e16c

Tree: 9719512cfe3fbfdcaddd4491913abb6c5428bfa4

Author: Anthony Eid

Committer: GitHub

## Message

```
agent: Support remote connection args in thread metadata database (#53550)

This PR adds remote connection data to the threads metadata database.
This fixes an issue where threads ran on separate projects with the same
remote/local path list would show up in the sidebar in both workspaces,
instead of only the workspace they were originally created in.

I added a migrator that uses the workspace persistence database to add
remote connection argument to threads that only have path list matches
with a remote project. If a path list matches with both local/remote
workspaces, we default to setting it as local.

Self-Review Checklist:

- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [x] The content is consistent with the [UI/UX
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
- [x] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable

Release Notes:

- N/A or Added/Fixed/Improved ...

---------

Co-authored-by: Eric Holk <eric@zed.dev>
```

## Parents

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

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