From f6390752a57a5ac3256f3213af870c0b62e224d7 Mon Sep 17 00:00:00 2001 From: Can Celik Date: Tue, 22 Sep 2026 16:25:17 +0300 Subject: fix: track opencode subagent status per pane (#4357) refs #1362 --- src/integration/assets/herdr-agent-state.test.ts | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/integration/assets/herdr-agent-state.test.ts') diff --git a/src/integration/assets/herdr-agent-state.test.ts b/src/integration/assets/herdr-agent-state.test.ts index e0f0bd57..abfeb0ef 100644 --- a/src/integration/assets/herdr-agent-state.test.ts +++ b/src/integration/assets/herdr-agent-state.test.ts @@ -5,6 +5,7 @@ import { tmpdir } from "node:os"; import { join } from "node:path"; const originalPlatform = process.platform; +const originalArgv = process.argv; const originalCreateConnection = net.createConnection; const originalEnvironment = { HERDR_ENV: process.env.HERDR_ENV, @@ -35,6 +36,7 @@ afterEach(async () => { Object.defineProperty(process, "platform", { value: originalPlatform }); net.createConnection = originalCreateConnection; + process.argv = originalArgv; for (const [name, value] of Object.entries(originalEnvironment)) { if (value === undefined) { delete process.env[name]; @@ -137,6 +139,7 @@ for (const socketPlugin of socketPlugins) { Object.defineProperty(process, "platform", { value: "win32" }); const connectedEndpoint = captureConnectionEndpoint(); + process.argv = ["bun", "/$bunfs/root/src/index.js", "run"]; const { HerdrAgentStatePlugin } = await importFresh(socketPlugin.modulePath); const plugin = await HerdrAgentStatePlugin(); await plugin.event({ -- cgit v1.2.3