@devries-cameron20 / t3code Mirror · read-only / commits / 7251f1a1f1
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 24, 17:45 UTC

Prevent terminal loading flash (#5432)

Julius Marminge committed Aug 5, 2026 at 23:09 UTC 7251f1a1f14afdf626e7c7f8664da423594732a3
1 file changed +5
apps/web/src/terminal/ghostty/surface.ts
+5
@@ -604,6 +604,11 @@ export class GhosttyTerminalSurface {
604
605 const context = canvas.getContext("2d", { alpha: false });
606 if (!context) throw new Error("Canvas 2D is unavailable");
607 + // An opaque canvas backing store initializes to solid black, and the font
608 + // and WASM loads below leave it on screen for the whole setup window; paint
609 + // the theme background first so the mount never flashes a black box.
610 + context.fillStyle = `rgb(${options.theme.background.r}, ${options.theme.background.g}, ${options.theme.background.b})`;
611 + context.fillRect(0, 0, canvas.width, canvas.height);
612 const fontSize = terminalFontSize(options.font?.size);
613 try {
614 // Cell metrics must come from the faces that will render; measuring before