# Harden state persistence and tighten WS thread update API · pingdotgg/t3code

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

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

Visibility: public

Requested revision: e81c2acb78ccf70630e32b7cd90ac50e7b544320

Requested commit: e81c2acb78ccf70630e32b7cd90ac50e7b544320

Commit: e81c2acb78ccf70630e32b7cd90ac50e7b544320

Tree: 10e8f1befc4165898c94885f9ffc950c5704e09f

Author: Julius Marminge

Committer: Julius Marminge

## Message

```
Harden state persistence and tighten WS thread update API

- Fix persistence edge cases around pagination offsets, assistant message ordering, and checkpoint merge semantics
- Make state DB and sqlite adapter failures safer with better cleanup and runtime errors
- Treat `threads.update` as unsupported, keep `threads.updateTerminalState` canonical, and avoid failing revert RPCs on persistence-write errors
- Add focused server/web/contracts tests for the new failure and compatibility paths

```

## Parents

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

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