From 3530ef27a0743d56e15ed9d5884d2de19c76733a Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 22 Apr 2026 13:49:06 +0000 Subject: [PATCH] fix: use 'where' instead of 'which' on Windows for devcontainer CLI detection Agent-Logs-Url: https://github.com/SabotageAndi/opencode-devcontainers/sessions/5b384e1f-928d-4e7a-b6fc-7598f15398ca Co-authored-by: SabotageAndi <859801+SabotageAndi@users.noreply.github.com> --- plugin/core/devcontainer.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugin/core/devcontainer.js b/plugin/core/devcontainer.js index a46b4d6..a01e7af 100644 --- a/plugin/core/devcontainer.js +++ b/plugin/core/devcontainer.js @@ -68,7 +68,8 @@ async function runCommand(cmd, args, options = {}) { */ export async function checkDevcontainerCli() { try { - const result = await runCommand('which', ['devcontainer']) + const whichCmd = process.platform === 'win32' ? 'where' : 'which' + const result = await runCommand(whichCmd, ['devcontainer']) return result.success } catch { return false