mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-05-01 21:20:33 +00:00
projects continued
This commit is contained in:
parent
23f53c4318
commit
0e1aa85890
64 changed files with 1191 additions and 551 deletions
|
|
@ -20,7 +20,7 @@ class Poll(ApiHandler):
|
|||
|
||||
# context instance - get or create only if ctxid is provided
|
||||
if ctxid:
|
||||
context = self.get_context(ctxid)
|
||||
context = self.use_context(ctxid, create_if_not_exists=False)
|
||||
else:
|
||||
context = None
|
||||
|
||||
|
|
@ -106,6 +106,7 @@ class Poll(ApiHandler):
|
|||
|
||||
# data from this server
|
||||
return {
|
||||
"deselect_chat": ctxid and not context,
|
||||
"context": context.id if context else "",
|
||||
"contexts": ctxs,
|
||||
"tasks": tasks,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue