fix(agent): close async chat persistence lifecycle

This commit is contained in:
InfinityPacer
2026-08-23 11:44:18 +08:00
parent 6f5ee96152
commit 0ba4a7e5e3
14 changed files with 448 additions and 72 deletions
+2 -1
View File
@@ -263,8 +263,9 @@ def configure_plugin_system_services():
)
configure_agent_chat_persistence(
AgentChatPersistenceService(
repository=AgentChatOper,
repository=lambda session: AgentChatOper(session),
async_executor=database_executor,
sync_transaction=transaction_runner.sync,
)
)
configure_agent_chat_service(AgentChatService(repository=AgentChatOper()))