mirror of
https://github.com/open-webui/computer.git
synced 2026-11-26 23:29:25 -05:00
refac
This commit is contained in:
1 parent
f6023daec8
commit
1cd4933302
3 files changed
+9
-6
No files matched your search
@@ -146,6 +146,10 @@
|
||||
|
||||
if (!data.done && !data.title && !isNew) return;
|
||||
|
||||
// Invalidate cache for ALL workspaces so re-expanding shows fresh data
|
||||
wsChatsCache = new Map();
|
||||
|
||||
// Re-fetch immediately for any currently expanded workspaces
|
||||
for (const path of expandedWorkspaces) {
|
||||
fetchWorkspaceChats(path);
|
||||
}
|
||||
|
||||
@@ -289,8 +289,10 @@
|
||||
<Toaster
|
||||
position="top-right"
|
||||
theme="system"
|
||||
closeButton
|
||||
richColors
|
||||
toastOptions={{
|
||||
style:
|
||||
'font-size: 12px; font-family: var(--font-sans); background: transparent; border: none; box-shadow: none; border-radius: 8px; padding: 0;'
|
||||
'font-size: 12px; font-family: var(--font-sans); border-radius: 8px;'
|
||||
}}
|
||||
/>
|
||||
@@ -190,15 +190,12 @@ async def execute_automation(automation, webhook_payload: str | None = None) ->
|
||||
model=bare_model,
|
||||
)
|
||||
|
||||
# Notify frontend
|
||||
# Notify frontend (standard chat event so sidebar updates)
|
||||
await emit_to_user(
|
||||
automation.user_id,
|
||||
{
|
||||
"type": "automation:result",
|
||||
"automation_id": automation.id,
|
||||
"name": automation.name,
|
||||
"chat_id": chat.id,
|
||||
"status": "success",
|
||||
"title": automation.name,
|
||||
},
|
||||
)
|
||||
|
||||
|
||||
Reference in new issue
Block a user