| ... | @@ -9,6 +9,7 @@ | ... | @@ -9,6 +9,7 @@ |
| 9 | */ | 9 | */ |
| 10 | // @effect-diagnostics nodeBuiltinImport:off | 10 | // @effect-diagnostics nodeBuiltinImport:off |
| 11 | import * as NodeFS from "node:fs"; | 11 | import * as NodeFS from "node:fs"; |
| | 12 | import * as NodeOS from "node:os"; |
| 12 | import * as NodePath from "node:path"; | 13 | import * as NodePath from "node:path"; |
| 13 | | 14 | |
| 14 | import * as NodeServices from "@effect/platform-node/NodeServices"; | 15 | import * as NodeServices from "@effect/platform-node/NodeServices"; |
| ... | @@ -200,7 +201,7 @@ describe("CodexSessionRuntime collab integration", () => { | ... | @@ -200,7 +201,7 @@ describe("CodexSessionRuntime collab integration", () => { |
| 200 | const runtime = yield* makeCodexSessionRuntime({ | 201 | const runtime = yield* makeCodexSessionRuntime({ |
| 201 | threadId: ThreadId.make("thread-collab-model-activity"), | 202 | threadId: ThreadId.make("thread-collab-model-activity"), |
| 202 | binaryPath: peerPath, | 203 | binaryPath: peerPath, |
| 203 | cwd: "/tmp", | 204 | cwd: NodeOS.tmpdir(), |
| 204 | runtimeMode: "full-access", | 205 | runtimeMode: "full-access", |
| 205 | environment: { ...process.env, T3_CODEX_COLLAB_SCRIPT: scriptPath }, | 206 | environment: { ...process.env, T3_CODEX_COLLAB_SCRIPT: scriptPath }, |
| 206 | }); | 207 | }); |
| ... | @@ -292,7 +293,7 @@ describe("CodexSessionRuntime collab integration", () => { | ... | @@ -292,7 +293,7 @@ describe("CodexSessionRuntime collab integration", () => { |
| 292 | const runtime = yield* makeCodexSessionRuntime({ | 293 | const runtime = yield* makeCodexSessionRuntime({ |
| 293 | threadId: ThreadId.make("thread-collab-model-spawn"), | 294 | threadId: ThreadId.make("thread-collab-model-spawn"), |
| 294 | binaryPath: peerPath, | 295 | binaryPath: peerPath, |
| 295 | cwd: "/tmp", | 296 | cwd: NodeOS.tmpdir(), |
| 296 | runtimeMode: "full-access", | 297 | runtimeMode: "full-access", |
| 297 | environment: { ...process.env, T3_CODEX_COLLAB_SCRIPT: scriptPath }, | 298 | environment: { ...process.env, T3_CODEX_COLLAB_SCRIPT: scriptPath }, |
| 298 | }); | 299 | }); |
| ... | @@ -371,7 +372,7 @@ describe("CodexSessionRuntime collab integration", () => { | ... | @@ -371,7 +372,7 @@ describe("CodexSessionRuntime collab integration", () => { |
| 371 | const runtime = yield* makeCodexSessionRuntime({ | 372 | const runtime = yield* makeCodexSessionRuntime({ |
| 372 | threadId: ThreadId.make(`thread-collab-model-${name}`), | 373 | threadId: ThreadId.make(`thread-collab-model-${name}`), |
| 373 | binaryPath: peerPath, | 374 | binaryPath: peerPath, |
| 374 | cwd: "/tmp", | 375 | cwd: NodeOS.tmpdir(), |
| 375 | runtimeMode: "full-access", | 376 | runtimeMode: "full-access", |
| 376 | environment: { ...process.env, T3_CODEX_COLLAB_SCRIPT: scriptPath }, | 377 | environment: { ...process.env, T3_CODEX_COLLAB_SCRIPT: scriptPath }, |
| 377 | }); | 378 | }); |
| ... | @@ -410,7 +411,7 @@ describe("CodexSessionRuntime collab integration", () => { | ... | @@ -410,7 +411,7 @@ describe("CodexSessionRuntime collab integration", () => { |
| 410 | const runtime = yield* makeCodexSessionRuntime({ | 411 | const runtime = yield* makeCodexSessionRuntime({ |
| 411 | threadId: ThreadId.make("thread-collab-integration"), | 412 | threadId: ThreadId.make("thread-collab-integration"), |
| 412 | binaryPath: peerPath, | 413 | binaryPath: peerPath, |
| 413 | cwd: "/tmp", | 414 | cwd: NodeOS.tmpdir(), |
| 414 | runtimeMode: "full-access", | 415 | runtimeMode: "full-access", |
| 415 | environment: { ...process.env, T3_CODEX_COLLAB_SCRIPT: scriptPath }, | 416 | environment: { ...process.env, T3_CODEX_COLLAB_SCRIPT: scriptPath }, |
| 416 | }); | 417 | }); |
| ... | @@ -552,7 +553,7 @@ describe("CodexSessionRuntime collab integration", () => { | ... | @@ -552,7 +553,7 @@ describe("CodexSessionRuntime collab integration", () => { |
| 552 | const runtime = yield* makeCodexSessionRuntime({ | 553 | const runtime = yield* makeCodexSessionRuntime({ |
| 553 | threadId: ThreadId.make("thread-collab-stop"), | 554 | threadId: ThreadId.make("thread-collab-stop"), |
| 554 | binaryPath: peerPath, | 555 | binaryPath: peerPath, |
| 555 | cwd: "/tmp", | 556 | cwd: NodeOS.tmpdir(), |
| 556 | runtimeMode: "full-access", | 557 | runtimeMode: "full-access", |
| 557 | environment: { ...process.env, T3_CODEX_COLLAB_SCRIPT: scriptPath }, | 558 | environment: { ...process.env, T3_CODEX_COLLAB_SCRIPT: scriptPath }, |
| 558 | }); | 559 | }); |
| ... | @@ -630,7 +631,7 @@ describe("CodexSessionRuntime collab integration", () => { | ... | @@ -630,7 +631,7 @@ describe("CodexSessionRuntime collab integration", () => { |
| 630 | const runtime = yield* makeCodexSessionRuntime({ | 631 | const runtime = yield* makeCodexSessionRuntime({ |
| 631 | threadId: ThreadId.make("thread-codex-queued-stop"), | 632 | threadId: ThreadId.make("thread-codex-queued-stop"), |
| 632 | binaryPath: peerPath, | 633 | binaryPath: peerPath, |
| 633 | cwd: "/tmp", | 634 | cwd: NodeOS.tmpdir(), |
| 634 | runtimeMode: "full-access", | 635 | runtimeMode: "full-access", |
| 635 | environment: { ...process.env, T3_CODEX_COLLAB_SCRIPT: scriptPath }, | 636 | environment: { ...process.env, T3_CODEX_COLLAB_SCRIPT: scriptPath }, |
| 636 | }); | 637 | }); |
| ... | @@ -727,7 +728,7 @@ describe("CodexSessionRuntime collab integration", () => { | ... | @@ -727,7 +728,7 @@ describe("CodexSessionRuntime collab integration", () => { |
| 727 | const runtime = yield* makeCodexSessionRuntime({ | 728 | const runtime = yield* makeCodexSessionRuntime({ |
| 728 | threadId: ThreadId.make("thread-codex-mcp-elicitation"), | 729 | threadId: ThreadId.make("thread-codex-mcp-elicitation"), |
| 729 | binaryPath: peerPath, | 730 | binaryPath: peerPath, |
| 730 | cwd: "/tmp", | 731 | cwd: NodeOS.tmpdir(), |
| 731 | runtimeMode: "auto", | 732 | runtimeMode: "auto", |
| 732 | environment: { ...process.env, T3_CODEX_COLLAB_SCRIPT: scriptPath }, | 733 | environment: { ...process.env, T3_CODEX_COLLAB_SCRIPT: scriptPath }, |
| 733 | }); | 734 | }); |