Dispatch
Dispatch is a task routing system that sends work to the appropriate execution environment. It manages runs, approvals, artifacts, and device capabilities across multiple routes.
Overview
Dispatch routes tasks to one of four execution environments:
| Route | Description |
|---|---|
cloud-knowledge | Cloud-based knowledge queries |
cloud-code | Cloud-based code execution |
desktop-local | Local desktop execution via paired device |
inline | Inline execution in the current session |
Run Lifecycle
Each dispatch run follows a status flow:
queued → running → waiting_approval → completed/failed/cancelled
| Status | Description |
|---|---|
queued | Run is waiting to be picked up |
running | Run is actively executing |
waiting_approval | Run is paused pending user approval |
completed | Run finished successfully |
failed | Run encountered an error |
cancelled | Run was cancelled by user |
Approvals
Some runs require explicit approval before proceeding. The approval workflow:
- Run enters
waiting_approvalstate - User sees approval request with details
- User approves or rejects
- Run continues or cancels accordingly
Approval requests include:
- Title and description of the action
- Request payload (sanitized)
- Device that will execute the action
Artifacts
Runs can produce artifacts — files or data created during execution:
| Field | Description |
|---|---|
name | Artifact filename |
kind | Type classification |
mimeType | Content MIME type |
sizeBytes | File size |
downloadUrl | URL to retrieve the artifact |
Device Capabilities
Desktop-local runs execute on paired devices. Each device reports its capabilities:
| Capability | Description |
|---|---|
shell | Can execute shell commands |
browserAutomation | Can control a browser |
desktopAutomation | Can automate desktop applications |
local_files | Can access local filesystem |
reachableFolders | Directories the device can access |
Device Permissions
Devices declare permissions that gate certain operations:
{
"permissions": {
"local_files": true,
"shell": true,
"browser_automation": false,
"desktop_automation": false
}
}
Thread View
The Dispatch UI shows a thread of entries:
- Messages — User/assistant messages in the dispatch conversation
- Runs — Dispatch runs with status and details
- Approvals — Pending and completed approval requests
- Artifacts — Files produced by runs
Related
- Nodes — Paired device management
- Browser Tool — Browser automation capabilities
- Exec Approvals — Execution approval configuration