





















@@ -98,7 +98,7 @@ vi.mock("../infra/command-analysis/inline-eval.js", () => ({
9898}));
9999100100vi.mock("../infra/node-shell.js", () => ({
101-buildNodeShellCommand: vi.fn(() => ["bash", "-lc", "bun ./script.ts"]),
101+buildNodeShellCommand: vi.fn(() => ["/bin/sh", "-lc", "bun ./script.ts"]),
102102}));
103103104104vi.mock("../infra/system-run-approval-context.js", () => ({
@@ -332,9 +332,9 @@ describe("executeNodeHostCommand", () => {
332332expect(result.details?.status).toBe("approval-pending");
333333expect(parsePreparedSystemRunPayloadMock).not.toHaveBeenCalled();
334334const expectedPlan = {
335-argv: ["bash", "-lc", "bun ./script.ts"],
335+argv: ["/bin/sh", "-lc", "bun ./script.ts"],
336336cwd: "/tmp/work",
337-commandText: 'bash -lc "bun ./script.ts"',
337+commandText: '/bin/sh -lc "bun ./script.ts"',
338338commandPreview: "bun ./script.ts",
339339agentId: "requested-agent",
340340sessionKey: "requested-session",
@@ -383,7 +383,7 @@ describe("executeNodeHostCommand", () => {
383383expect.objectContaining({
384384command: "system.run",
385385params: expect.objectContaining({
386-command: ["bash", "-lc", "bun ./script.ts"],
386+command: ["/bin/sh", "-lc", "bun ./script.ts"],
387387rawCommand: "bun ./script.ts",
388388suppressNotifyOnExit: true,
389389timeoutMs: 30_000,
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。