# Fix attachment cleanup to match exact thread segments · gitcafe/t3code

[View on GitCafe](https://git.cafe/gitcafe/t3code/commit/d58af33fba73936659158ba2167a00475889d1e5)

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

Visibility: public

Requested revision: d58af33fba73936659158ba2167a00475889d1e5

Requested commit: d58af33fba73936659158ba2167a00475889d1e5

Commit: d58af33fba73936659158ba2167a00475889d1e5

Tree: 559a9e8b6911edf3cf4968be9e2ed8123cbde5c4

Author: Julius Marminge

Committer: Julius Marminge

## Message

```
Fix attachment cleanup to match exact thread segments

- Parse thread segments from attachment IDs using a UUID-aware pattern
- Prevent revert/delete cleanup from removing files belonging to similarly prefixed threads
- Add tests for prefix-collision cases in attachment store and projection pipeline

```

## Parents

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

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