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 21, 13:30 UTC
test(desktop): wait for the published PATH after a fallback-shell retry (#36991)
Julius Marminge committed
Nov 14, 2026 at 16:39 UTC
2b7ea1bc2d651ac3ad360dbcbcf6cc94ad6e4dff
1 file changed
+7
apps/desktop/src/shell/DesktopShellEnvironment.test.ts
+7
@@ -711,9 +711,16 @@ describe("DesktopShellEnvironment", () => {
711
Effect.gen(function* () {
712
assert.isTrue(yield* service.awaitDiscovery);
713
assert.equal(env.PATH, "/usr/bin");
714
+ // The Linux probe checks the D-Bus socket on the real filesystem, which the clock does not await.
715
+ const published = yield* service.updates.pipe(
716
+ Stream.filter((snapshot) => snapshot.environment.PATH === "/fish/bin:/usr/bin"),
717
+ Stream.runHead,
718
+ Effect.forkChild({ startImmediately: true }),
719
+ );
720
721
fishReady = true;
722
yield* TestClock.adjust("30 seconds");
723
+ assert.isTrue(Option.isSome(yield* Fiber.join(published)));
724
assert.equal(env.PATH, "/fish/bin:/usr/bin");
725
return true;
726
}),