mirror of
https://github.com/open-webui/computer.git
synced 2026-11-23 22:11:29 -05:00
refac
This commit is contained in:
1 parent
5ca7bff590
commit
a1856ea737
9 files changed
+90
-27
No files matched your search
@@ -202,12 +202,13 @@ async def _inject_completion(record: dict[str, Any]) -> None:
|
||||
parent_id = done_assistants[-1].id if done_assistants else record.get("parent_message_id")
|
||||
|
||||
meta = {
|
||||
"async_subagent_result": True,
|
||||
"internal": True,
|
||||
"type": "timer" if record.get("timer_chat_id") else "subagent",
|
||||
"delegation_id": record.get("delegation_id"),
|
||||
"subagent_chat_id": record.get("subagent_chat_id"),
|
||||
}
|
||||
if active:
|
||||
meta["async_subagent_pending"] = True
|
||||
meta["status"] = "pending"
|
||||
|
||||
if record.get("timer_chat_id") and not active:
|
||||
direct_timer_completion = True
|
||||
@@ -264,7 +265,7 @@ async def _inject_completion(record: dict[str, Any]) -> None:
|
||||
{
|
||||
"chat_id": parent_chat_id,
|
||||
"message_id": user_msg.id,
|
||||
"async_subagent_pending": True,
|
||||
"pending_inputs_processed": True,
|
||||
},
|
||||
)
|
||||
return
|
||||
|
||||
Reference in new issue
Block a user