# Introduce completed_scan_id to worktree · gitcafe/zed

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

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

Visibility: public

Requested revision: 1dd085fc9235d9ef1170a18e5be02759e9981ce0

Requested commit: 1dd085fc9235d9ef1170a18e5be02759e9981ce0

Commit: 1dd085fc9235d9ef1170a18e5be02759e9981ce0

Tree: 184420fa4eb481d2ca58b472efe93e01b03319fa

Author: Nathan Sobo

Committer: Nathan Sobo

## Message

```
Introduce completed_scan_id to worktree

We need to know the most recent scan id we have actually completed. This is to
handle the case where a guest disconnects when we're in the middle of streaming
worktree entries to them. When they reconnect, they need to report a scan_id
from before we started streaming the entries, because we have no record of when
the stream was interrupted.

Next failure:
SEED=5051 ITERATIONS=1 OPERATIONS=200 cargo test --release --package=collab random -- --nocapture

```

## Parents

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

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