From 5a0a586f408535c2972f7a42b04009a9f7b6449b Mon Sep 17 00:00:00 2001 From: Leo Li Date: Sun, 27 Sep 2026 15:07:56 -0700 Subject: [PATCH] test: keep remote OpenCode fixture paths consistent --- cmuxTests/SessionPersistenceTests.swift | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cmuxTests/SessionPersistenceTests.swift b/cmuxTests/SessionPersistenceTests.swift index b307a9f3d461..dfe221f06a9b 100644 --- a/cmuxTests/SessionPersistenceTests.swift +++ b/cmuxTests/SessionPersistenceTests.swift @@ -3371,15 +3371,16 @@ final class SocketListenerAcceptPolicyTests: XCTestCase { } func testOpenCodeForkSupportSkipsLocalProbeForRemoteLikeContext() async { + let workingDirectory = "/remote/cmux/project-\(UUID().uuidString)" let snapshot = SessionRestorableAgentSnapshot( kind: .opencode, sessionId: "opencode-session-remote", - workingDirectory: "/remote/cmux/project-\(UUID().uuidString)", + workingDirectory: workingDirectory, launchCommand: AgentLaunchCommandSnapshot( launcher: "opencode", executablePath: "/remote/bin/opencode", arguments: ["/remote/bin/opencode"], - workingDirectory: "/remote/cmux/project-\(UUID().uuidString)", + workingDirectory: workingDirectory, environment: ["PATH": "/remote/bin:/usr/bin"], capturedAt: 123, source: "process"