Derive turn event payloads from canonical result fields

This commit is contained in:
Ian Gulliver
2026-10-21 17:06:12 -07:00
parent b5f2a69dee
commit f7d73395a3
5 changed files with 27 additions and 21 deletions
+1 -1
View File
@@ -304,7 +304,7 @@ func (m *Manager) leadTurnEnded(ctx context.Context, l *live, res endResult) err
finished := !res.isError && !interrupted && strings.TrimSpace(res.result) != ""
handoff := compacting && finished
payload := res.payload
payload := res.payload()
if handoff {
payload["handoff"] = true
}