# feat\(providers\): Pi session-tree rollback and session-name sync · stienswout/t3code

[View on GitCafe](https://git.cafe/stienswout/t3code/commit/52142904d940bda1fe0be47b542df968033ceecb)

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

Visibility: public

Requested revision: 52142904d940bda1fe0be47b542df968033ceecb

Requested commit: 52142904d940bda1fe0be47b542df968033ceecb

Commit: 52142904d940bda1fe0be47b542df968033ceecb

Tree: 27bf6312c363508788e532be772b97361cd94ae7

Author: Wout Stiens

Committer: Wout Stiens

## Message

```
feat(providers): Pi session-tree rollback and session-name sync

Turn boundaries now capture pi session-tree refs: each provider turn's
nativeTurnRef becomes its first user entry id and the thread's
nativeConversationHeadRef tracks the tree leaf, giving rollback a durable
target. rollbackThread re-roots the active branch with pi's fork command,
so reverting a checkpoint also rewinds the provider conversation instead
of marking it divergent. Thread titles sync into pi's session name so T3
threads stay identifiable in pi's own /resume listing.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

```

## Parents

- [1d57786e2e7eedfdf3b81df76067eb145081cde5](https://git.cafe/stienswout/t3code/commit/1d57786e2e7eedfdf3b81df76067eb145081cde5?format=markdown)

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