Derive turn event payloads from canonical result fields
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user