Skip to content

v0.3.14 — IDE Compatibility Fix (Claude Code, VS Code, Codex)

Choose a tag to compare

@Keesan12 Keesan12 released this 26 Jun 18:29

Fixes MartinLoop inside Claude Code desktop, VS Code, and Codex IDE

The problem

When MartinLoop runs inside Claude Code desktop, VS Code extensions, or the Codex IDE, it was only working in standalone PowerShell — not in the IDE terminal or agent panel.

Root cause: These applications bundle their own Electron Node.js. When MartinLoop spawned subprocesses using process.execPath, it was using Electron's Node — which has different module resolution and cannot reliably execute system npm CLI shims.

The fix

resolveSystemNode() now finds the actual system node.exe on PATH, skipping any path that contains "electron", "claude", "vscode", or "cursor" in its name. Falls back to process.execPath only if no system Node is found.

Escape hatch: Set MARTIN_NODE_PATH=/path/to/node to explicitly control which Node MartinLoop uses for subprocess execution.

What this fixes

  • martin run inside Claude Code desktop ✓
  • martin run inside VS Code terminal ✓
  • martin run inside Codex IDE ✓
  • PowerShell (was already working) ✓

Install

npm install -g martin-loop@0.3.14