mirror of
https://github.com/open-webui/computer.git
synced 2026-11-22 21:50:43 -05:00
refac
This commit is contained in:
1 parent
23e5e22338
commit
3ddaffb90c
2 files changed
+3
-2
No files matched your search
@@ -341,7 +341,7 @@
|
||||
});
|
||||
} else if (workspacePath && workspacePath === lastLoadedPath) {
|
||||
// Same workspace — process intents immediately
|
||||
processIntentParams();
|
||||
if (get(currentWorkspace)?.path === workspacePath) processIntentParams();
|
||||
} else if (!workspacePath) {
|
||||
lastLoadedPath = null;
|
||||
currentWorkspace.set(null);
|
||||
|
||||
@@ -1213,7 +1213,8 @@ async def run_chat_task(
|
||||
import re as _re
|
||||
|
||||
mentioned = _re.findall(
|
||||
r"\$([a-z0-9](?:[a-z0-9-]*[a-z0-9])?)", last_user["content"]
|
||||
r"\$([a-z0-9](?:[a-z0-9-]*[a-z0-9])?)",
|
||||
_plain_message_text(last_user.get("content")),
|
||||
)
|
||||
skill_names = {s.name for s in skills}
|
||||
attached_skill_ids = [m for m in mentioned if m in skill_names]
|
||||
|
||||
Reference in new issue
Block a user