mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-04-30 12:40:33 +00:00
WebSocket merge
This commit is contained in:
parent
6ca84022d8
commit
4932e12546
124 changed files with 12072 additions and 757 deletions
|
|
@ -12,7 +12,7 @@ class CreateChat(ApiHandler):
|
|||
|
||||
# context instance - get or create
|
||||
current_context = AgentContext.get(current_ctxid)
|
||||
|
||||
|
||||
# get/create new context
|
||||
new_context = self.use_context(new_ctxid)
|
||||
|
||||
|
|
@ -26,6 +26,10 @@ class CreateChat(ApiHandler):
|
|||
# if current_data_2:
|
||||
# new_context.set_output_data(projects.CONTEXT_DATA_KEY_PROJECT, current_data_2)
|
||||
|
||||
# New context should appear in other tabs' chat lists via state_push.
|
||||
from python.helpers.state_monitor_integration import mark_dirty_all
|
||||
mark_dirty_all(reason="api.chat_create.CreateChat")
|
||||
|
||||
return {
|
||||
"ok": True,
|
||||
"ctxid": new_context.id,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue