backdesk Error Codes, Recovery Behavior and Troubleshooting
Every failed operation returns an error with a code, a message, retryable, handoffRecommended and details. This page lists the codes, says what backdesk does when something goes wrong, and gives a troubleshooting table. Recovery behavior marked "tested" has a passing test on the one test machine.
Error Codes
The retryable and handoffRecommended flags are the values built into the code.
| Code | Retryable | Handoff recommended |
|---|---|---|
session_not_found | no | no |
wrong_machine | no | no |
lease_required | yes | no |
lease_held_by_other | yes | no |
lease_expired | yes | no |
human_in_control | yes | no |
session_paused | yes | no |
stale_observation | yes | no |
observation_expired | yes | no |
ambiguous_target | no | no |
target_not_in_session | no | no |
outside_authorized_surface | no | no |
isolation_check_failed | no | yes |
background_input_unavailable | no | yes |
app_not_allowed | no | no |
permission_denied | no | no |
approval_timeout | yes | yes |
capture_black | yes | yes |
capture_timeout | yes | no |
window_gone | no | no |
window_minimized | no | yes |
unsupported | no | yes |
wait_timeout | yes | no |
cancelled | yes | no |
interrupted_ambiguous | no | yes |
invalid_argument | no | no |
internal_error | no | yes |
permission_denied (a human refused) and approval_timeout (nobody answered) are different codes on purpose. A similar mix-up is reported for another tool: a prompt on a session nobody was viewing was reported as a user denial (anthropics/claude-code#103373, open, reporter's log analysis).
What backdesk Does When Things Go Wrong
| Event | Behavior | Status |
|---|---|---|
| Cancel during a drag | The mouse button is released and the next action works. | tested |
| Client disconnects during a drag | The lease is freed and a second agent can work. | tested |
| Daemon killed during a drag | Session processes end through the job object. A new daemon starts. recover_report lists the drag as interrupted_ambiguous. Nothing is replayed. | tested |
| Handoff requested | The lease is released. Agent input is refused with human_in_control until handback. | tested |
| Another client | Two MCP clients in separate sessions cannot act on each other's session or lease. | tested |
| Held input on any failure | drag releases held input on any failure. | by design (stated in the operation description) |
| Action cannot be delivered in the background | An error (unsupported, background_input_unavailable) and a handoff recommendation. Never a fallback to your desktop. | by design |
| Observation is out of date | stale_observation when the window changed since the observation. Observe again. | by design |
| Black frame or capture timeout | capture_black or capture_timeout. | codes exist; no failing-app run is claimed |
| Input desktop cannot be read (locked PC, UAC prompt) | Fails closed. | by design |
"By design" means the code does this and the flag or error exists. It does not mean a measured result unless the row says tested.
Troubleshooting
| Symptom | Likely cause | What to do |
|---|---|---|
backdesk doctor reports a failed check | The backend cannot run here | Keep the whole output. Read limitations. Report it as a compatibility problem. |
unsupported on a click | Posted clicks on a standard Win32 popup menu close it without choosing, or the control is served only by the MSAA proxy | Use the keyboard to choose the menu item. |
unsupported or no effect in a game, Chromium, Electron or WinUI app | The app reads raw input or physical key state | Not supported today. Use a handoff. |
| An Enter key press does not confirm a dialog | LibreOffice's custom-drawn "Non-standard file format" dialog ignores Enter | Click the button by coordinates (examples). Its buttons are missing from the accessibility tree. |
app_launch returns no window for a long time | Seen twice with LibreOffice Calc (over 60 s) while other test suites were running. Cause unknown, not reproduced since | Raise waitForWindowMs, check window_list, retry. |
lease_expired or lease_required | The lease timed out or was released | Call lease_acquire again. |
stale_observation or observation_expired | The window changed or the observation is older than observationTtlSeconds | Call observe again and use the new observationId. |
human_in_control | A takeover or handoff is active | Wait for the human to hand back. |
| Nothing works while the PC is locked or a UAC prompt shows | Fails closed by design | Unlock or dismiss the prompt. |
| An elevated (administrator) window is not driven | Not supported | Run the app without elevation. |
| Stuck daemon | backdesk daemon-stop, then retry. |