authorgravatar for stark.burns@adexpartners.comAdEx-Partners-DE <stark.burns@adexpartners.com> 2026-10-12 03:07:38+02:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2026-10-12 01:07:38+00:00
log6a99eb3f08f190d514c924dbcd562ee58b365762
treef7b3703f9eb0921f8115c7f67a14e4334156d701
parent9b9792ead5d5b1bad9b713336c90de6af81b1d39
signature Signed by PGP key B5690EEEBB952194

test(server): Claude sign-in message test passes on Windows hosts (#18183)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

1 files changed, 4 insertions(+), 2 deletions(-)

apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.test.ts+4-2
...@@ -3150,7 +3150,8 @@ describe("ClaudeAdapterV2 background wake turns", () => {...@@ -3150,7 +3150,8 @@ describe("ClaudeAdapterV2 background wake turns", () => {
3150 it.effect("names an expired Claude login instead of the terminal API error", () =>3150 it.effect("names an expired Claude login instead of the terminal API error", () =>
3151 Effect.gen(function* () {3151 Effect.gen(function* () {
3152 const configDir = "/synthetic/Claude config";3152 const configDir = "/synthetic/Claude config";
3153 const cwd = "/synthetic/project";3153 // The adapter resolves the cwd on the host, which adds a drive letter on Windows.
3154 const cwd = NodePath.resolve("/synthetic/project");
3154 const harness = yield* makeWakeHarnessWithOptions({3155 const harness = yield* makeWakeHarnessWithOptions({
3155 environment: { CLAUDE_CONFIG_DIR: configDir },3156 environment: { CLAUDE_CONFIG_DIR: configDir },
3156 });3157 });
...@@ -3187,7 +3188,8 @@ describe("ClaudeAdapterV2 background wake turns", () => {...@@ -3187,7 +3188,8 @@ describe("ClaudeAdapterV2 background wake turns", () => {
3187 if (terminal.status !== "failed") return;3188 if (terminal.status !== "failed") return;
3188 assert.include(terminal.failure.message, "run `claude auth login`");3189 assert.include(terminal.failure.message, "run `claude auth login`");
3189 assert.include(terminal.failure.message, configDir);3190 assert.include(terminal.failure.message, configDir);
3190 assert.include(terminal.failure.message, cwd);3191 // The message quotes its paths, which escapes Windows separators.
3192 assert.include(terminal.failure.message, JSON.stringify(cwd));
3191 assert.notInclude(terminal.failure.message, "repeated API errors");3193 assert.notInclude(terminal.failure.message, "repeated API errors");
3192 }).pipe(3194 }).pipe(
3193 Effect.provide(3195 Effect.provide(