feat(telegram): persist callback status chain snapshots
This commit is contained in:
@@ -374,6 +374,8 @@ async def list_callback_replies(
|
||||
m.sent_at,
|
||||
m.triggered_by_state,
|
||||
m.source_envelope -> 'callback_reply' AS callback_reply,
|
||||
m.source_envelope -> 'awooop_status_chain'
|
||||
AS persisted_awooop_status_chain,
|
||||
m.source_envelope -> 'km_stale_completion_summary'
|
||||
AS persisted_km_stale_completion_summary,
|
||||
r.agent_id,
|
||||
@@ -1055,6 +1057,9 @@ def _callback_reply_event_item(row: Mapping[str, Any]) -> dict[str, Any]:
|
||||
"agent_id": row.get("agent_id"),
|
||||
"run_created_at": row.get("run_created_at"),
|
||||
"callback_reply": callback_reply,
|
||||
"persisted_awooop_status_chain": _as_dict(
|
||||
row.get("persisted_awooop_status_chain"),
|
||||
) or None,
|
||||
"persisted_km_stale_completion_summary": _as_dict(
|
||||
row.get("persisted_km_stale_completion_summary"),
|
||||
) or None,
|
||||
|
||||
Reference in New Issue
Block a user