Cline Desktop Packaging Polish: Shell Isolation & Error Handling

Cline's desktop packaging shims get polish fixes: shell variable isolation in kanban.cmd and proper error handling in Electron spawn logic.

Cline Desktop Packaging Polish: Shell Isolation & Error Handling

TL;DR

  • kanban.cmd now isolates environment variables so they don't leak into the parent shell
  • launch-electron.mjs adds error handler for failed Electron spawns
  • Fixes polish debt from PR #373 review

Fixed

  • kanban.cmd shell pollution — Wrapped SCRIPT_DIR, RESOURCES_DIR, and CLI_ENTRY in setlocal/endlocal to prevent variable leakage into the caller's cmd.exe session. Previously these persisted in the parent shell when invoked interactively.
  • launch-electron.mjs silent failures — Added child.on('error') handler to catch spawn failures (missing Electron binary, EACCES on helper, etc.). Without it, the wrapper exited 0 with no output instead of surfacing the actual error.

Update via: git pull origin backup/pr/desktop-7-packaging

Source: Cline