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 -6
View File
@@ -270,11 +270,6 @@ func (m *Manager) codexTurnCompleted(ctx context.Context, l *live, s *codex.Sess
m.mu.Unlock()
}
}
res.payload = map[string]any{
"subtype": res.subtype,
"is_error": res.isError,
"result": res.result,
"vendor_uuid": turn.ID,
}
res.metadata = map[string]any{"vendor_uuid": turn.ID}
return m.turnEnded(ctx, l, res)
}