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

[View on GitCafe](https://git.cafe/pingdotgg/t3code/commit/afc0c78f0b681b176b3171d48d5c080144891a3f)

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

Visibility: public

Requested revision: afc0c78f0b681b176b3171d48d5c080144891a3f

Requested commit: afc0c78f0b681b176b3171d48d5c080144891a3f

Commit: afc0c78f0b681b176b3171d48d5c080144891a3f

Tree: 20d9a9b9cbfd3004987399a7668230ac7f3b7719

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

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

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