diff --git a/acp_adapter/server.py b/acp_adapter/server.py index 1f6064d67fa..26d5809d1a4 100644 --- a/acp_adapter/server.py +++ b/acp_adapter/server.py @@ -3,6 +3,7 @@ from __future__ import annotations import asyncio +from datetime import datetime, timezone import base64 import contextvars import json @@ -721,9 +722,11 @@ class HermesACPAgent(acp.Agent): return title = row.get("title") - updated_at = row.get("updated_at") - if updated_at is not None and not isinstance(updated_at, str): - updated_at = str(updated_at) + # The `sessions` table does not have an `updated_at` column (see + # hermes_state.py schema — only started_at/ended_at). Use "now" as + # the updated_at since we're emitting this notification precisely + # because the title was just refreshed. + updated_at = datetime.now(timezone.utc).isoformat() update = SessionInfoUpdate( session_update="session_info_update", title=title if isinstance(title, str) and title.strip() else None,