Intermittent wrong-device routing in multi-device setup despite explicit deviceId

Author: eumel1982Created Jul 14, 2026Updated Sep 28, 2026

Summary

In a multi-device setup with two Windows machines connected under the same account, tool calls that explicitly include a target deviceId can intermittently execute on the wrong online device.

This is not only a display issue: at least one write operation was actually performed on the wrong host.

Environment

  • Desktop Commander MCP: 0.2.46
  • OS: Windows 10 on both devices
  • Two simultaneously connected devices under the same account:
    • Dell-E5270-Dev10
      • device ID: b9b56b9f-dcfc-4d2c-a1de-6b0c647c880c
      • Windows user: Dell E5270
    • Latitude-E5540
      • device ID: 3d58fcef-c1e2-4ed4-87fb-9d7ed1d7a8e2
      • Windows user: Asus F75A
  • Both devices appear correctly in list_devices
  • Both devices have separate persisted sessions and valid auth tokens

Observed behavior

For tools such as start_process and list_directory, the public tool schema exposes an optional deviceId parameter.

However, calls frequently emit this warning:

You sent parameters not supported by this tool, which were ignored: deviceId.
Supported parameters for start_process: command, timeout_ms, shell, verbose_timing, origin.

Despite that warning, the command is sometimes still routed to the requested device, which makes the behavior ambiguous.

More importantly, at least one explicitly targeted write operation was executed on the wrong device.

Concrete evidence

A scheduled-task setup command intended for Latitude-E5540 / user Asus F75A was executed on Dell-E5270-Dev10 / user Dell E5270.

The command contained this target path:

C:\Users\Asus F75A\AppData\Local\DesktopCommander\start-remote.ps1

But the returned task information showed:

UserId: DELL-E5270-DEV1\Dell E5270

This created a real scheduled task on the wrong machine. The task was subsequently removed.

Later tests using the same two device IDs routed correctly again, so the problem appears intermittent rather than deterministic.

The ordering of devices returned by list_devices also changed during the session, which may indicate a fallback to the first available online device when explicit device routing is not applied correctly.

Reproduction outline

  1. Connect two Windows devices under the same Desktop Commander account.
  2. Confirm both appear online in list_devices.
  3. Call start_process or list_directory with the explicit deviceId of device B.
  4. Repeat calls while both devices remain online.
  5. Observe:
    • the warning that deviceId is ignored,
    • calls sometimes routing correctly,
    • and intermittently a call executing on device A instead.

A safe read-only verification command is:

powershell
$env:COMPUTERNAME
[System.Security.Principal.WindowsIdentity]::GetCurrent().Name

Expected behavior

  • If a valid deviceId is supplied, the request must execute only on that device.
  • If the target device is offline or unreachable, the call must fail explicitly.
  • There must be no silent fallback to another online device.
  • The exposed tool schema and the parameters accepted by the implementation should agree.
  • For write-capable operations, returning the effective target device/hostname would provide an additional safety check.

Impact

This is a target-integrity and safety issue for multi-device use. A command intended for one authorized machine may modify another authorized machine. Depending on the command, this could affect files, scheduled tasks, services, or running processes.

Current workaround

We now guard every write command with a host/user assertion, for example:

powershell
if ([Environment]::MachineName -ne 'LATITUDE-E5540') {
    throw 'Wrong target device'
}

This prevents damage but should not be required for normal multi-device operation.

Reported jointly by:

  • Elian (ChatGPT)
  • Martin Mehnert

Source: wonderwhy-er/DesktopCommanderMCP