mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-10-23 17:05:28 +08:00
fix(discord): complete streaming media and event delivery
This commit is contained in:
@@ -1118,6 +1118,14 @@ class RuntimeConnectionHandler(handler.Handler):
|
||||
message=f'Query with query_id {query_id} not found',
|
||||
)
|
||||
|
||||
from ..agent.runner.context_reset import reset_runner_context
|
||||
from ..agent.runner.query_entry_adapter import QueryEntryAdapter
|
||||
|
||||
conversation_id = QueryEntryAdapter._build_conversation_context(query).conversation_id
|
||||
async with self.ap.persistence_mgr.tenant_uow(action_context.workspace_uuid):
|
||||
await reset_runner_context(
|
||||
self.ap.persistence_mgr, action_context.workspace_uuid, query.bot_uuid, conversation_id
|
||||
)
|
||||
query.session.using_conversation = None
|
||||
|
||||
return handler.ActionResponse.success(
|
||||
|
||||
Reference in New Issue
Block a user