Script action - store text and option (#3289)

This commit is contained in:
Shuchang Zheng
2025-08-24 17:34:31 -07:00
committed by GitHub
parent f3167ed2a3
commit 472b8b4452
3 changed files with 29 additions and 5 deletions

View File

@@ -474,7 +474,7 @@ class AgentDB:
.order_by(ActionModel.created_at.desc())
)
actions = (await session.scalars(query)).all()
return [Action.model_validate(action) for action in actions]
return [hydrate_action(action, empty_element_id=True) for action in actions]
except SQLAlchemyError:
LOG.error("SQLAlchemyError", exc_info=True)