diff --git a/src/shared/agent-command-line-entrypoint.ts b/src/shared/agent-command-line-entrypoint.ts index fe30447fe0b..6d765811cbc 100644 --- a/src/shared/agent-command-line-entrypoint.ts +++ b/src/shared/agent-command-line-entrypoint.ts @@ -124,9 +124,23 @@ export function findInterpreterEntrypointToken( } export function comparablePath(token: string): string { - return token + const path = token .trim() .replace(/^["']|["']$/g, '') .replace(/\\/g, '/') .toLowerCase() + // Why: npm's local `.bin` shims and Qwen's standalone launcher run `/../