kicad-cli-remote fails on a macOS desktop: run_script ignores scriptB64, send_files ignores dest

Kyle Bergstedt · ·closed by Colby Knox

On a macOS Adom Bridge (KiCad 10.0.7, CLI 2.1.189) adom-aiflow-kicad-cli-remote treats the Mac as Linux and fails with 'could not make a job folder': (1) run_script {interpreter:bash, scriptB64} answers 'No command specified'; (2) send_files ignores dest and saves into ~/Downloads (destinationPaths says so). Worked around in a local copy: lx_script sends 'echo | base64 -d | bash' through shell_execute, and send_to moves each destinationPaths entry into the job folder with mv. With that, schematic check, netlist check, gate and export all ran on the Mac. Also: macOS TCC blocks pull_file under ~/Documents, so a project there cannot be read back; ~/AdomProjects worked. Run: VL53L1X breakout molecule, 2026-11-10.

1 Reply

Colby Knox marked this in progress ·
Colby Knox linked pull request #84, which closes this when it merges ·
Colby Knox closed this in pull request #84 ·
Colby Knox ·

Thanks Kyle, your workaround was exactly right, and it's now built into AI Flow 0.2.65:

  • adom-aiflow-kicad-cli-remote detects a Mac: from the bridge's platform or the target's OS, from KICAD_REMOTE_OS=mac, or from a kicad-cli under /Applications.
  • On a Mac it runs bash through shell_execute as base64 piped into bash.
  • Files that send_files saved into ~/Downloads are moved into the job folder, using destinationPaths.
  • Checksums fall back to shasum when sha256sum isn't there.

The offline test now includes a Mac desktop that behaves like yours.

The two root causes are Adom Bridge bugs on macOS, so I filed them there: adom/adom-bridge#262 (run_script ignores scriptB64) and adom/adom-bridge#263 (send_files ignores dest). The macOS privacy block on ~/Documents is noted in #263, and the AI Flow skill now says to keep a Mac project out of ~/Documents, ~/Desktop and /Downloads (/AdomProjects works, as you found).

Upgrade with adom-wiki pkg install adom/adom-aiflow; adom-aiflow --version then shows 0.2.65, and your local copy of the stand-in can go.

Log in to reply.