@devries-cameron20 / t3code Mirror · read-only / commits / 9661141276
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 21, 07:15 UTC

fix(server): server preview tabs opened at startup no longer stay loading (#37406)

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

Kenmege committed Nov 18, 2026 at 13:27 UTC 96611412766d54098f1eba0862a426f708191f16
1 file changed +7 -1
apps/server/src/preview/ServerBrowser.ts
+7 -1
@@ -3423,7 +3423,13 @@ const make = Effect.gen(function* () {
3423 } satisfies ServerBrowserViewer;
3424 });
3425
3426 - yield* manager.events.pipe(Stream.runForEach(mirrorManagerEvent), Effect.forkScoped);
3426 + // Subscribe before forking: a forked stream subscribes only once it runs, so a tab opened
3427 + // right after startup would publish its `opened` event to no one and never load.
3428 + const managerEvents = yield* manager.subscribeEvents;
3429 + yield* Stream.fromSubscription(managerEvents).pipe(
3430 + Stream.runForEach(mirrorManagerEvent),
3431 + Effect.forkScoped,
3432 + );
3433 if (
3434 !PreviewBrowserHost.sandboxDisabled(yield* HostProcess.Environment) &&
3435 (yield* PreviewBrowserHost.sandboxBlocked)