Commit ad8ea56
hclsys
fix(voice-call): emit canonical agent-scoped session keys for per-phone and per-call scopes (#80064)
Before this fix, `resolveVoiceCallSessionKey` produced raw `voice:*` keys
(`voice:<phone>`, `voice:call:<callId>`). Gateway startup migration
canonicalizes those keys to `agent:<agentId>:voice:*` format, so after a
restart the per-phone/per-call resolver and the session store used different
keys — breaking caller continuity across restarts.
Fix: include `agentId` in the Pick type and prefix every generated key with
`agent:<agentId || "main">:voice:`. Explicit session keys pass through
unchanged. All four call sites already supply full VoiceCallConfig objects,
so no call-site changes are required.1 parent 2694516 commit ad8ea56
2 files changed
Lines changed: 24 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
270 | 270 | | |
271 | 271 | | |
272 | 272 | | |
273 | | - | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
274 | 290 | | |
275 | 291 | | |
276 | 292 | | |
| |||
287 | 303 | | |
288 | 304 | | |
289 | 305 | | |
290 | | - | |
| 306 | + | |
291 | 307 | | |
292 | 308 | | |
293 | 309 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
717 | 717 | | |
718 | 718 | | |
719 | 719 | | |
720 | | - | |
| 720 | + | |
721 | 721 | | |
722 | 722 | | |
723 | 723 | | |
| |||
726 | 726 | | |
727 | 727 | | |
728 | 728 | | |
| 729 | + | |
729 | 730 | | |
730 | | - | |
| 731 | + | |
731 | 732 | | |
732 | 733 | | |
733 | | - | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
734 | 737 | | |
735 | 738 | | |
736 | 739 | | |
| |||
0 commit comments