# Clean up orphaned composer drafts and harden draft checks · screen/t3code-personal

[View on GitCafe](https://git.cafe/screen/t3code-personal/commit/d9cce6402ae875b24d9ddbe73866eee94ec16ddb)

Repository: [screen/t3code-personal](https://git.cafe/screen/t3code-personal)

Visibility: public

Requested revision: d9cce6402ae875b24d9ddbe73866eee94ec16ddb

Requested commit: d9cce6402ae875b24d9ddbe73866eee94ec16ddb

Commit: d9cce6402ae875b24d9ddbe73866eee94ec16ddb

Tree: ce9c28f6d989e834b7e3f86f51f5562d13e33e6e

Author: Julius Marminge

Committer: Julius Marminge

## Message

```
Clean up orphaned composer drafts and harden draft checks

- Remove stale `draftsByThreadId` entries when project-thread mappings are replaced or cleared
- Preserve drafts when a thread is still mapped to another project
- Parse persisted image `dataUrl` payloads more defensively and use `Object.hasOwn` for draft-thread existence checks

```

## Parents

- [508872e04b87dc7cb53632988115b54b15f78e06](https://git.cafe/screen/t3code-personal/commit/508872e04b87dc7cb53632988115b54b15f78e06?format=markdown)

[Source at this commit](https://git.cafe/screen/t3code-personal/tree/d9cce6402ae875b24d9ddbe73866eee94ec16ddb?format=markdown)
