Commit 4d4b961
fix: update thread persona_id on every message send
The frontend already passes personaId into acpSendMessage, but it was
only used for session tracker lookup — never forwarded to the backend.
After a mid-session persona switch and page reload, the session list
showed the stale persona from session creation.
Forward personaId in the prompt request's _meta field and extract it
in on_prompt to update the thread's persona_id metadata, mirroring
how model_id and provider_id are already kept in sync.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent dfaaa67 commit 4d4b961
3 files changed
Lines changed: 24 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2227 | 2227 | | |
2228 | 2228 | | |
2229 | 2229 | | |
| 2230 | + | |
| 2231 | + | |
| 2232 | + | |
| 2233 | + | |
| 2234 | + | |
| 2235 | + | |
| 2236 | + | |
| 2237 | + | |
| 2238 | + | |
| 2239 | + | |
| 2240 | + | |
| 2241 | + | |
| 2242 | + | |
| 2243 | + | |
| 2244 | + | |
2230 | 2245 | | |
2231 | 2246 | | |
2232 | 2247 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
98 | | - | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
99 | 105 | | |
100 | 106 | | |
101 | 107 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
231 | 231 | | |
232 | 232 | | |
233 | 233 | | |
| 234 | + | |
234 | 235 | | |
235 | 236 | | |
236 | | - | |
| 237 | + | |
237 | 238 | | |
0 commit comments