Skip to content

Commit e1ed9e8

Browse files
test(server): preserve the host Claude configuration in fork fixtures
1 parent 25764bf commit e1ed9e8

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

‎apps/server/src/orchestration-v2/Adapters/ClaudeAgentSdkQueryRunner.test.ts‎

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -164,16 +164,11 @@ it.effect("forks in-process when the instance shares the server's config dir", (
164164
.spyOn(ClaudeSdk, "forkSession")
165165
.mockResolvedValue({ sessionId: "forked-in-process" });
166166
yield* Effect.addFinalizer(() => Effect.sync(() => inProcessFork.mockRestore()));
167-
const path = yield* Path.Path;
168-
const homeDirectory = yield* HostProcess.HomeDirectory;
169-
const hostConfigDir =
170-
process.env.CLAUDE_CONFIG_DIR?.trim() || path.join(homeDirectory, ".claude");
171-
172167
const runner = yield* ClaudeAgentSdkQueryRunner;
173168
const forked = yield* runner.forkSession({
174169
sessionId: FORK_SESSION_ID,
175170
options: { dir: "/repo" },
176-
environment: { ...process.env, CLAUDE_CONFIG_DIR: hostConfigDir },
171+
environment: { ...process.env },
177172
threadId: ThreadId.make("thread-fork-shared-config-dir"),
178173
providerSessionId: ProviderSessionId.make("session-fork-shared-config-dir"),
179174
});

0 commit comments

Comments
 (0)