# Preserve Claude resume cursor across provider restarts · flambo/t3code

[View on GitCafe](https://git.cafe/flambo/t3code/commit/da53e4104d0e1463281df800e9794ab3d44012f0)

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

Visibility: public

Requested revision: da53e4104d0e1463281df800e9794ab3d44012f0

Requested commit: da53e4104d0e1463281df800e9794ab3d44012f0

Commit: da53e4104d0e1463281df800e9794ab3d44012f0

Tree: 4d086603d2b5728e22e76c305b609992f6ea7e96

Author: Julius Marminge

Committer: Julius Marminge

## Message

```
Preserve Claude resume cursor across provider restarts

- Reuse persisted `resumeCursor` when restarting a Claude session for the same thread/provider
- Generate a fresh Claude `sessionId` only for new sessions; avoid reusing stale checkpoint fields
- Keep resume state when only model options change, with tests covering restart and resume behavior

```

## Parents

- [754efdbebe49d7cd46beecdadd4aa8b5968b18d2](https://git.cafe/flambo/t3code/commit/754efdbebe49d7cd46beecdadd4aa8b5968b18d2?format=markdown)

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