The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 23, 14:15 UTC
test(server): Claude sign-in message test passes on Windows hosts (#18183)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
AdEx-Partners-DE committed
Oct 12, 2026 at 03:07 UTC
6a99eb3f08f190d514c924dbcd562ee58b365762
1 file changed
+4
-2
apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.test.ts
+4
-2
@@ -3150,7 +3150,8 @@ describe("ClaudeAdapterV2 background wake turns", () => {
3150
it.effect("names an expired Claude login instead of the terminal API error", () =>
3151
Effect.gen(function* () {
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");
3155
const harness = yield* makeWakeHarnessWithOptions({
3156
environment: { CLAUDE_CONFIG_DIR: configDir },
3157
});
@@ -3187,7 +3188,8 @@ describe("ClaudeAdapterV2 background wake turns", () => {
3188
if (terminal.status !== "failed") return;
3189
assert.include(terminal.failure.message, "run `claude auth login`");
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));
3193
assert.notInclude(terminal.failure.message, "repeated API errors");
3194
}).pipe(
3195
Effect.provide(