From e645455b22854c9d0ff5a871451f01c10a318383 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20Guti=C3=A9rrez?= <35082514+alezmad@users.noreply.github.com> Date: Wed, 8 Apr 2026 15:34:29 +0100 Subject: [PATCH] fix(runner): run Python venv binaries directly, not via node Co-Authored-By: Claude Opus 4.6 (1M context) --- apps/runner/supervisor.mjs | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/apps/runner/supervisor.mjs b/apps/runner/supervisor.mjs index 0a30720..b8c6240 100644 --- a/apps/runner/supervisor.mjs +++ b/apps/runner/supervisor.mjs @@ -117,11 +117,17 @@ async function initMcp(svc) { // --- Spawn --- function spawnService(svc) { - // npx packages have a pre-resolved binary + // npx/uvx packages have a pre-resolved binary let cmd, args; if (svc._npxBin) { - cmd = "node"; - args = [svc._npxBin]; + // Python venv binaries are scripts with shebangs — run directly + if (svc.runtime === "python") { + cmd = svc._npxBin; + args = []; + } else { + cmd = "node"; + args = [svc._npxBin]; + } } else { ({ cmd, args } = detectEntry(svc.sourcePath, svc.runtime)); }