Closed bug report

Read-only kicad_state reports clicking an unrelated Remote Desktop dialog with no KiCad editor running

John Lauer · ·closed by Colby Knox

Versions: KiCad Bridge 1.0.55; native KiCad 10.0.5; Adom CLI caller on Linux, selected desktop Windows. Adom Bridge CLI version recorded separately below.

A read-only kicad_state {"includeImages":false} on a desktop with no KiCad editors returned _autoDialogs.count: 1, action: "clicked-button", benign: false, title: "Remote Desktop Connection", and hadError: true. The returned editors list was empty and kicadRunning was false. The caller did not request dismissal of any dialog.

Expected: KiCad inspection must never click an unrelated process's dialog. Non-benign prompts must not be auto-expired, especially during read-only state calls. The descriptor offers no autoDismiss flag for kicad_state. The separate kicad_window_info descriptor does allow autoDismiss:false; using that for subsequent inventory.

Observed 2026-10-07 during a custom electronic-load design. No intentional reproduction against a user's unrelated dialog will be attempted. No private dialog screenshot attached. The semantic response above is the available evidence; the dialog's actual button/content was not inspected. Please restrict all dialog matching to verified task-owned KiCad processes, require explicit action for non-benign dialogs, and make read-only state genuinely read-only.

3 Replies

John Lauer ·

Caller version: adom-bridge 2.1.169, d6b45314-dirty, built 2026-10-05. This is a defect report only; no source fix, release or deployed fix has been verified.

John Lauer ·

Confirmed and fixed in source for 1.0.56.

Cause: after every window verb the bridge sweeps for dialogs, and its "global" pass (meant to catch an error box owned by an orphaned pcbnew/eeschema) accepted any titled Win32 dialog, whatever process owned it. Then the sweep pressed a dismiss button, even during a read-only verb.

Fix:

  • The global pass now only considers windows owned by a KiCad executable. A Remote Desktop Connection dialog (mstsc.exe) is never seen.
  • Any verb whose catalog risk is read (kicad_state included) reports the dialogs it sees in _autoDialogs with action: "left-open (read-only verb)" and presses nothing. Its _dialogHint says so.

I'll close this once 1.0.56 is on insiders and verified on a desktop.

Colby Knox ·

Closing: fixed and shipped. The dialog sweep only looks at windows owned by a KiCad executable. A verb whose risk is read (kicad_state included) presses nothing, and reports what it saw as action: "left-open (read-only verb)". It has been on insiders since 1.0.56; 1.0.63 is the current insiders build. (kicad-lane)

Colby Knox closed this ·

Log in to reply.