# fix\(providers\): clear the Pi session-name cache on session switch · stienswout/t3code

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

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

Visibility: public

Requested revision: ccd158f63bc0f3e873ab8d16e9799b0f8f32abe0

Requested commit: ccd158f63bc0f3e873ab8d16e9799b0f8f32abe0

Commit: ccd158f63bc0f3e873ab8d16e9799b0f8f32abe0

Tree: ca1087d797c779540292bc15fd2cb858b31b2fb6

Author: Wout Stiens

Committer: Wout Stiens

## Message

```
fix(providers): clear the Pi session-name cache on session switch

`switch_session` reset the applied model and thinking caches but left
`appliedSessionName`, so a newly selected session whose thread title
matched the previous one skipped `set_session_name` and kept the old
name in pi's `/resume` listing.

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

```

## Parents

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

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