Skip to content

The all-in-one local AI studio for your desktop: chat, image and video generation and a coding agent in one free, open source app. Windows and Linux. No Docker, no terminal, no cloud required.

merge: C60-S5 (feat/310-chat-workflows 32c0afe29) into integ/310

purplea33ff5d70b74
diff --cc src/api/__tests__/tool-registry.test.ts
index 1ba2d888,29ec3cb9..d821de29
--- a/src/api/__tests__/tool-registry.test.ts
+++ b/src/api/__tests__/tool-registry.test.ts
@@@ -51,7 -47,12 +51,12 @@@ describe('AGENT_TOOL_DEFS', () =>
// Download) hat Nebenwirkungen und eine eigene Karte und passt deshalb
// nicht in set_setting. Alle fuenf stehen hinter demselben Tor wie
// get_settings und fahren nur auf einer Nachricht ueber LU selbst mit.
- expect(AGENT_TOOL_DEFS).toHaveLength(25 + (browserExistsHere() ? BROWSER_TOOL_NAMES.length : 0))
- // 3.1.0 (C60-S5): +4 (zusammen mit C60: 28), workflow_find/_inspect/_install/_assign. Kein
++ // 3.1.0 (C60-S5): +4 (zusammen mit C60: 28, mit P-L 29 plus Browser), workflow_find/_inspect/_install/_assign. Kein
+ // vorhandenes Werkzeug passt: run_workflow startet LUs eigene Ablaeufe,
+ // set_setting aendert Werte, das hier holt fremde Dateien mit Ampel und
+ // Karte. Sie fahren nur auf einer Nachricht ueber einen Workflow mit
+ // (WORKFLOW_GATE_WORDS), nie im Plain Chat, nie im Unteragenten.
- expect(AGENT_TOOL_DEFS).toHaveLength(28)
++ expect(AGENT_TOOL_DEFS).toHaveLength(29 + (browserExistsHere() ? BROWSER_TOOL_NAMES.length : 0))
})
const expectedTools = [
@@@ -110,10 -109,10 +115,11 @@@
// 3.1.0 (C60): die fuenf Selbststeuerungswerkzeuge aus demselben Grund
// wie set_setting: jede Aenderung fragt mit ihrer eigenen Karte.
expect(autoNames).toEqual([
+ ...(browserExistsHere() ? [...BROWSER_TOOL_NAMES] : []),
'check_tasks', 'get_settings', 'lu_download', 'lu_models', 'lu_open_settings', 'lu_service', 'message_agent',
- 'set_setting', 'set_settings', 'todo_write', 'web_fetch', 'web_search',
+ 'set_setting', 'set_settings', 'todo_write', 'web_fetch', 'web_research', 'web_search',
+ 'workflow_assign', 'workflow_find', 'workflow_inspect', 'workflow_install',
- ])
+ ].sort())
})
it('confirm-permission tools include file ops, code, shell, image, workflow, screenshot, delegate_task, sprint A/B/C tools', () => {
diff --cc src/api/mcp/__tests__/mobile-tool-filter.test.ts
index 549912f0,709a9776..267ff2ae
--- a/src/api/mcp/__tests__/mobile-tool-filter.test.ts
+++ b/src/api/mcp/__tests__/mobile-tool-filter.test.ts
@@@ -46,14 -45,14 +46,16 @@@ function registryHere(): ToolRegistry
const GONE = ['shell_execute', 'pr_resume', 'screenshot', 'image_generate', 'video_generate']
/** The settings tools of A11 (3.0.8): desktop only, see MOBILE_UNBUILT_TOOLS. */
- // A11 (3.0.8) and C60 (3.1.0): LU's own settings and actions, desktop only.
- const SETTINGS = ['get_settings', 'set_setting', 'set_settings', 'lu_models', 'lu_service', 'lu_download', 'lu_open_settings']
+ // A11 (3.0.8), C60 (3.1.0) and C60-S5: LU's own settings, actions and the
+ // ComfyUI workflow tools, desktop only.
+ const SETTINGS = ['get_settings', 'set_setting', 'set_settings', 'lu_models', 'lu_service', 'lu_download', 'lu_open_settings',
+ 'workflow_find', 'workflow_inspect', 'workflow_install', 'workflow_assign']
const STAYS = [
- 'todo_write', 'web_search', 'web_fetch', 'file_read', 'file_write', 'file_edit', 'file_list',
+ 'todo_write', 'web_research', 'web_search', 'web_fetch', 'file_read', 'file_write', 'file_edit', 'file_list',
'file_search', 'run_workflow', 'delegate_task', 'check_tasks', 'message_agent',
]
+/** The LU browser (P-L, 3.1.0): macOS and Windows desktop only. */
+const BROWSER = ['browser_open', 'browser_snapshot', 'browser_scroll', 'browser_click_link', 'browser_screenshot']
const DESKTOP_WORDS = /this computer|shell_execute|image_generate|video_generate|PowerShell|drive letter|uname|Get-ComputerInfo|ComfyUI|Finder/
afterEach(() => { vi.unstubAllGlobals() })
diff --cc src/components/chat/ToolCallBlock.tsx
index fd501c48,a8735c9d..fb611127
--- a/src/components/chat/ToolCallBlock.tsx
+++ b/src/components/chat/ToolCallBlock.tsx
@@@ -287,11 -277,11 +290,16 @@@ function ToolCallBlockImpl({ toolCall,
const settingAsk = useSettingsConfirmStore((s) => (isSetSetting && isRunning ? pendingForCall(s.queue, toolCall.id) : null))
const settingChanges = isSetSetting && toolCall.status === 'completed' ? parseSettingChanges(toolCall.result) : []
const selfAction = isSetSetting && toolCall.status === 'completed' ? parseSelfControlAction(toolCall.result) : null
+ // P-L: a web address the model made up waits here for Open; the sources of
+ // a web tool stay visible under it, from the tool result and not the model.
+ const isWebTool = WEB_URL_TOOLS.has(toolCall.toolName)
+ const urlAsk = useWebUrlConfirmStore((s) => (isWebTool && isRunning ? pendingUrlForCall(s.queue, toolCall.id) : null))
+ const sourceCards = isWebTool && toolCall.status === 'completed' ? parseSourceCards(toolCall.result) : []
+ // C60-S5: a workflow install or assignment waits here with its traffic
+ // light check, and stays with Undo for the assignment.
+ const isWorkflowWrite = toolCall.toolName === 'workflow_install' || toolCall.toolName === 'workflow_assign'
+ const workflowAsk = useWorkflowCardStore((s) => (isWorkflowWrite && isRunning ? workflowCardForCall(s.queue, toolCall.id) : null))
+ const workflowMark = isWorkflowWrite && toolCall.status === 'completed' ? parseWorkflowMark(toolCall.result) : null
// Real cancel (2026-06-16): only image/video generation supports a true
// abort (ComfyUI /interrupt + loop abort). Local "cancelling" state flips the
// mini button to a "stopping…" indicator the moment it's clicked.
@@@ -456,10 -446,8 +464,12 @@@
{settingAsk && <div className="ml-3.5 pl-2"><SettingChangeAsk req={settingAsk} /></div>}
{settingChanges.map((c) => <div key={c.key} className="ml-3.5 pl-2"><SettingChangeDone change={c} /></div>)}
{selfAction && <div className="ml-3.5 pl-2"><SelfControlDone action={selfAction} /></div>}
+ {urlAsk && <div className="ml-3.5 pl-2"><WebUrlAsk req={urlAsk} /></div>}
+ {sourceCards.length > 0 && <div className="ml-3.5 pl-2"><WebSourceCards cards={sourceCards} /></div>}
+ {toolCall.toolName === 'browser_screenshot' && <div className="ml-3.5 pl-2"><BrowserShot toolCallId={toolCall.id} /></div>}
+ {toolCall.toolName.startsWith('browser_') && <div className="ml-3.5 pl-2"><BrowserControls live={isRunning} /></div>}
+ {workflowAsk && <div className="ml-3.5 pl-2"><WorkflowCardAsk req={workflowAsk} /></div>}
+ {workflowMark && <div className="ml-3.5 pl-2"><WorkflowCardDone mark={workflowMark} /></div>}
{isRunning && toolCall.toolName === 'computer_task' && <ScreenTaskSteps />}
{(toolCall.toolName === 'computer_task' || toolCall.toolName === 'computer_use') && (
<ScreenShotStrip callId={toolCall.id} className="ml-3.5 mb-1 pl-2" />