Open-source Grok Bot alternative for named AI teammates. Local-first desktop, web, and mobile clients with per-bot tools, instructions, and memory. Independent fork of T3 Code.
Prevent terminal loading flash (#5432)
Julius Marminge7251f1a1f14a
diff --git a/apps/web/src/terminal/ghostty/surface.ts b/apps/web/src/terminal/ghostty/surface.tsindex 8dee6218f..fc7a89c6d 100644--- a/apps/web/src/terminal/ghostty/surface.ts+++ b/apps/web/src/terminal/ghostty/surface.ts@@ -604,6 +604,11 @@ export class GhosttyTerminalSurface {const context = canvas.getContext("2d", { alpha: false });if (!context) throw new Error("Canvas 2D is unavailable");+ // An opaque canvas backing store initializes to solid black, and the font+ // and WASM loads below leave it on screen for the whole setup window; paint+ // the theme background first so the mount never flashes a black box.+ context.fillStyle = `rgb(${options.theme.background.r}, ${options.theme.background.g}, ${options.theme.background.b})`;+ context.fillRect(0, 0, canvas.width, canvas.height);const fontSize = terminalFontSize(options.font?.size);try {// Cell metrics must come from the faces that will render; measuring before