@devries-cameron20 / t3code Mirror · read-only / commits / 5bb44523a6
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, 19:45 UTC

fix(server): desktop browser tabs on System appearance follow the system color scheme (#35038)

Julius Marminge committed Nov 12, 2026 at 02:32 UTC 5bb44523a61a73ad799ba87f41aa44fff39dec0c
2 files changed +13
apps/server/src/preview/ServerBrowser.test.ts
+11
@@ -799,6 +799,17 @@ it.effect("an agent's tab the reloaded desktop dropped goes back to the desktop"
799 ).pipe(Effect.provide(layer)),
800 );
801
802 +// Playwright emulates a light color scheme on every page it attaches to.
803 +it.effect("a desktop tab left on the system appearance clears Playwright's light emulation", () =>
804 + Effect.scoped(
805 + Effect.gen(function* () {
806 + const { context } = yield* openDesktopViewer;
807 +
808 + expect(context.page.emulateMedia).toHaveBeenCalledWith({ colorScheme: null });
809 + }),
810 + ).pipe(Effect.provide(layer)),
811 +);
812 +
813 it.effect("a desktop page that loaded before the server attached reports its loaded title", () =>
814 Effect.scoped(
815 Effect.gen(function* () {
apps/server/src/preview/ServerBrowser.ts
+2
@@ -885,6 +885,8 @@ const make = Effect.gen(function* () {
885 ? await connectDesktop(snapshot)
886 : null;
887 if (desktop) opened.push(desktop.close);
888 + // Attaching over CDP emulates a light scheme; a tab on System follows the desktop's.
889 + if (desktop) await desktop.page.emulateMedia({ colorScheme: null });
890 // Otherwise a desktop that attaches late shows its own page, and the agent drives another.
891 if (!desktop && desktopChannel.available) {
892 await runPromise(