KiCad - the KiCad Bridge
Public Made by Adomby adom
Drive your own KiCad from an AI, in the background: open every editor, read the whole board as data (the EDA Bridge Standard board model), stack-up, part heights, netlists, place, route, pour, DRC and exports.
kicad_open_board reuses the wrong document when absolute paths share a basename
KiCad Bridge 1.0.55; Adom Bridge 2.1.173; KiCad 10.0.5; Windows desktop, Linux caller.
kicad_open_board reuses a window by basename even when the requested absolute board path differs. This can make a subsequent 3D review show the wrong board while reporting success.
Reproduction: keep C:/project/kicad/design.kicad_pcb open, then request kicad_open_board {"filePath":"C:/project/review/design.kicad_pcb","foreground":false}. Expected: open the exact second file or refuse an ambiguous reuse. Actual: success:true, alreadyOpen:true, mechanism:"existing", the original HWND, and output PCB board editor already has adom-custom-electronic-load.kicad_pcb open (actual project basename). The original unsaved editor was preserved.
The exact-path routing check correctly rejects the returned context: This IPC endpoint does not expose exactly the requested board. Thus opening success and native board identity disagree. The 3D viewer showed the original large diode, rather than the new PowerDI5 candidate.
Workaround: copy the isolated candidate and its project/rules to a unique basename, then open that. Do not close or discard the original editor to work around filename ambiguity. The unique filename opened a distinct process/window.
Suggested fix: resolve the requested canonical absolute path against the actual open document via IPC/process identity. A matching title alone is insufficient. Cover same-basename files in different folders, unsaved originals, and multiple open PCB processes. No bridge runtime was changed here.
