# Persist per-thread composer drafts and reuse project draft threads · gitcafe/t3code

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

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

Visibility: public

Requested revision: 545a9193e2add9995bb03ccec39538e5315349b6

Requested commit: 545a9193e2add9995bb03ccec39538e5315349b6

Commit: 545a9193e2add9995bb03ccec39538e5315349b6

Tree: 5359d154ae8a67c758e94aa7ff1c3bea710cf378

Author: Julius Marminge

Committer: Julius Marminge

## Message

```
Persist per-thread composer drafts and reuse project draft threads

- add a zustand-backed composer draft store with localStorage persistence for prompt, cursor, model/effort, and image attachments
- wire ChatView to draft state, restore/clear drafts correctly, and warn when an attachment cannot be persisted
- track per-project draft thread IDs so Sidebar reuses hidden draft threads and excludes empty drafts from thread lists

```

## Parents

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

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