-
-
Notifications
You must be signed in to change notification settings - Fork 6
Features Confirmations
Tuck edited this page Jun 28, 2026
·
1 revision
Confirm or deny pending actions before they execute. This is the core of Deskbrid's safety model — privileged or destructive actions require user approval before they proceed.
Approve a pending action by its confirmation ID.
| Parameter | Type | Description |
|---|---|---|
id |
string | Confirmation ID |
deskbrid confirm.action '{"id": "confirm-abc123"}'{
"type": "confirm.action",
"id": "confirm-abc123"
}Reject/deny a pending action.
| Parameter | Type | Description |
|---|---|---|
id |
string | Confirmation ID |
deskbrid confirm.deny '{"id": "confirm-abc123"}'{
"type": "confirm.deny",
"id": "confirm-abc123"
}List all pending action confirmations.
deskbrid confirm.listNo parameters.
Response:
{
"type": "response",
"status": "ok",
"data": [
{
"id": "confirm-abc123",
"action": "system.power",
"params": {"action": "shutdown"},
"requested_by": "automation",
"requested_at": "2024-01-15T10:00:00Z",
"expires_at": "2024-01-15T10:00:30Z"
}
]
}- An action marked as requiring confirmation is dispatched.
- Deskbrid pauses execution and creates a confirmation entry.
- The client receives a pending confirmation event.
- The user (or automated responder) sends
confirm.actionorconfirm.deny. - If confirmed, the original action executes. If denied or expired, it's discarded.
Pending confirmations expire after 30 seconds by default. Expired confirmations are treated as denied.
from deskbrid import Deskbrid
client = Deskbrid()
# Check pending confirmations
pending = client.confirm_list()
if pending:
# Auto-confirm any pending actions
for confirm in pending:
print(f"Confirming: {confirm['action']} (id: {confirm['id']})")
client.confirm_action(id=confirm["id"])- The confirmation system is the primary safety boundary for destructive operations.
- Rules engine actions that require confirmation will also generate confirmation entries.
- The
permissions.tomlconfig controls which actions require confirmation.
Stable — v1.0.0 core safety feature.
- Accessibility
- Apps
- Audio
- Backlight (LED driver)
- Bluetooth
- Clipboard
- Color Picker
- Desktop Portal
- Desktop Settings
- Files
- Hotkeys
- Input
- Keyboard Layouts
- Media (MPRIS)
- Monitors
- Network
- Notifications
- Print (CUPS)
- Screenshots
- Screen Recording
- Screencast
- Self-Update
- System
- System Tray
- Systemd Units & Timers
- Terminals (PTY)
- Windows & Workspaces