aboutsummaryrefslogtreecommitdiff
path: root/src/integration/assets/herdr-agent-state.test.ts
diff options
context:
space:
mode:
authorCan Celik <ogulcancelik@gmail.com>2026-09-22 16:25:17 +0300
committerGitHub <noreply@github.com>2026-09-22 16:25:17 +0300
commitf6390752a57a5ac3256f3213af870c0b62e224d7 (patch)
tree5b622345c5b274d82a9ff8a80a2be8adf7f67968 /src/integration/assets/herdr-agent-state.test.ts
parent46a5091838de66c1be193990afc3ad9145e6b4f5 (diff)
fix: track opencode subagent status per pane (#4357)
refs #1362
Diffstat (limited to 'src/integration/assets/herdr-agent-state.test.ts')
-rw-r--r--src/integration/assets/herdr-agent-state.test.ts3
1 files changed, 3 insertions, 0 deletions
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({