Multi-Agent Collaboration for Team and Friends
TypeScript agent-automationagent-orchestrationagent-workflowai-agentsai-collaborationai-memoryai-workforceautonomous-agentsclaude-codeclaude-code-skillscodexcoding-agentmulti-agentmultiple-agentone-person-businessone-person-companyone-person-teamopencodesolopreneur
fix(cli): make opencode positional-prompt test tolerate win32 quoting
Gus96a5ab9ab61e
diff --git a/src/cli/daemon/agent/__tests__/opencode.test.ts b/src/cli/daemon/agent/__tests__/opencode.test.tsindex 7892c2ae1..4f716f568 100644--- a/src/cli/daemon/agent/__tests__/opencode.test.ts+++ b/src/cli/daemon/agent/__tests__/opencode.test.ts@@ -241,8 +241,15 @@ describe("OpenCodeBackend", () => {backend.execute("do things", { cwd: "/tmp" });expect(lastSpawnArgs).toBeTruthy();const args = lastSpawnArgs!.args;+ // On win32 the args are pre-quoted for cmd.exe (see win-quote.ts), so+ // "do things" arrives as `"do things"`. Strip a single wrapping quote+ // pair for the positional-arg assertion.+ const last = args[args.length - 1];+ const unwrapped = process.platform === "win32" && last.startsWith("\"") && last.endsWith("\"")+ ? last.slice(1, -1)+ : last;expect(args).not.toContain("--prompt");- expect(args[args.length - 1]).toBe("do things");+ expect(unwrapped).toBe("do things");});it("TC8: spawns the CLI detached on POSIX so its group can be reaped", () => {