@devries-cameron20 / t3code Mirror · read-only / commits / 4ff8b077d5
Fork 0

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 reset tests are skipped on Windows hosts, where their mock CLI cannot run (#18184)

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

AdEx-Partners-DE committed Oct 12, 2026 at 03:41 UTC 4ff8b077d523cfe661c5c2e3222b3086d5bff5f5
1 file changed +14 -9
apps/server/src/provider/ProviderInstanceRegistry.test.ts
+14 -9
@@ -74,6 +74,9 @@ const layerTestHttpClient = Layer.succeed(
74 ),
75 );
76
77 +// The mock CLIs from makeTildeProviderFixtures are scripts Windows cannot execute.
78 +const windowsHost = HostProcess.Platform.defaultValue() === "win32";
79 +
80 const TEST_EPOCH = DateTime.makeUnsafe("1970-01-01T00:00:00.000Z");
81
82 const layerBackgroundPolicyAlwaysRun = Layer.mock(BackgroundPolicy.BackgroundPolicy)({
@@ -503,7 +506,7 @@ describe("ProviderInstanceRegistry — multi-instance codex slice", () => {
506 Effect.provide(layerTest),
507 );
508
506 - it.live("refreshes Claude usage after redeeming a reset", () =>
509 + it.live.skipIf(windowsHost)("refreshes Claude usage after redeeming a reset", () =>
510 Effect.gen(function* () {
511 const { outcome, after } = yield* redeemClaudeReset({
512 result: "reset",
@@ -514,14 +517,16 @@ describe("ProviderInstanceRegistry — multi-instance codex slice", () => {
517 }),
518 );
519
517 - it.live("reports Claude's answer when a claim changed nothing and the re-probe fails", () =>
518 - Effect.gen(function* () {
519 - const { outcome } = yield* redeemClaudeReset({
520 - result: "already_used",
521 - usageFailsAfterClaim: true,
522 - });
523 - expect(outcome).toMatchObject({ _tag: "Success", success: "alreadyRedeemed" });
524 - }),
520 + it.live.skipIf(windowsHost)(
521 + "reports Claude's answer when a claim changed nothing and the re-probe fails",
522 + () =>
523 + Effect.gen(function* () {
524 + const { outcome } = yield* redeemClaudeReset({
525 + result: "already_used",
526 + usageFailsAfterClaim: true,
527 + });
528 + expect(outcome).toMatchObject({ _tag: "Success", success: "alreadyRedeemed" });
529 + }),
530 );
531
532 it.live(