backdesk

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.

CodeRetryableHandoff recommended
session_not_foundnono
wrong_machinenono
lease_requiredyesno
lease_held_by_otheryesno
lease_expiredyesno
human_in_controlyesno
session_pausedyesno
stale_observationyesno
observation_expiredyesno
ambiguous_targetnono
target_not_in_sessionnono
outside_authorized_surfacenono
isolation_check_failednoyes
background_input_unavailablenoyes
app_not_allowednono
permission_deniednono
approval_timeoutyesyes
capture_blackyesyes
capture_timeoutyesno
window_gonenono
window_minimizednoyes
unsupportednoyes
wait_timeoutyesno
cancelledyesno
interrupted_ambiguousnoyes
invalid_argumentnono
internal_errornoyes

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

EventBehaviorStatus
Cancel during a dragThe mouse button is released and the next action works.tested
Client disconnects during a dragThe lease is freed and a second agent can work.tested
Daemon killed during a dragSession processes end through the job object. A new daemon starts. recover_report lists the drag as interrupted_ambiguous. Nothing is replayed.tested
Handoff requestedThe lease is released. Agent input is refused with human_in_control until handback.tested
Another clientTwo MCP clients in separate sessions cannot act on each other's session or lease.tested
Held input on any failuredrag releases held input on any failure.by design (stated in the operation description)
Action cannot be delivered in the backgroundAn error (unsupported, background_input_unavailable) and a handoff recommendation. Never a fallback to your desktop.by design
Observation is out of datestale_observation when the window changed since the observation. Observe again.by design
Black frame or capture timeoutcapture_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

SymptomLikely causeWhat to do
backdesk doctor reports a failed checkThe backend cannot run hereKeep the whole output. Read limitations. Report it as a compatibility problem.
unsupported on a clickPosted clicks on a standard Win32 popup menu close it without choosing, or the control is served only by the MSAA proxyUse the keyboard to choose the menu item.
unsupported or no effect in a game, Chromium, Electron or WinUI appThe app reads raw input or physical key stateNot supported today. Use a handoff.
An Enter key press does not confirm a dialogLibreOffice's custom-drawn "Non-standard file format" dialog ignores EnterClick the button by coordinates (examples). Its buttons are missing from the accessibility tree.
app_launch returns no window for a long timeSeen twice with LibreOffice Calc (over 60 s) while other test suites were running. Cause unknown, not reproduced sinceRaise waitForWindowMs, check window_list, retry.
lease_expired or lease_requiredThe lease timed out or was releasedCall lease_acquire again.
stale_observation or observation_expiredThe window changed or the observation is older than observationTtlSecondsCall observe again and use the new observationId.
human_in_controlA takeover or handoff is activeWait for the human to hand back.
Nothing works while the PC is locked or a UAC prompt showsFails closed by designUnlock or dismiss the prompt.
An elevated (administrator) window is not drivenNot supportedRun the app without elevation.
Stuck daemonbackdesk daemon-stop, then retry.

API, permissions and privacy, limitations.