From a15baba93b3749efea00f70383e3e1d7ef00ad2a Mon Sep 17 00:00:00 2001 From: Lawrence Chen <54008264+lawrencecchen@users.noreply.github.com> Date: Tue, 10 Feb 2026 01:11:41 -0800 Subject: [PATCH] Add blocking script to prevent theme flash on load Inline script in reads localStorage theme before first paint and applies .dark class synchronously. Defaults to dark to match next-themes defaultTheme config. --- web/app/layout.tsx | 38 +++++++++++++++++++++++++++++++++++--- 1 file changed, 35 insertions(+), 3 deletions(-) diff --git a/web/app/layout.tsx b/web/app/layout.tsx index abc12fe4..2f987852 100644 --- a/web/app/layout.tsx +++ b/web/app/layout.tsx @@ -19,20 +19,25 @@ const geistMono = Geist_Mono({ export const metadata: Metadata = { title: "cmux — The terminal built for multitasking", description: - "Native macOS terminal built on Ghostty. Vertical tabs, notification rings when agents need attention, split panes, and a socket API for automation.", + "Native macOS terminal built on Ghostty. Works with Claude Code, Codex, OpenCode, Gemini CLI, Kiro, Aider, and any CLI tool. Vertical tabs, notification rings, split panes, and a socket API.", keywords: [ "terminal", "macOS", "coding agents", "Claude Code", "Codex", + "OpenCode", + "Gemini CLI", + "Kiro", + "Aider", "Ghostty", "AI", + "terminal for AI agents", ], openGraph: { title: "cmux — The terminal built for multitasking", description: - "Native macOS terminal built on Ghostty. Vertical tabs, notification rings, split panes, and a socket API.", + "Native macOS terminal for AI coding agents. Works with Claude Code, Codex, OpenCode, Gemini CLI, Kiro, Aider, and any CLI tool.", url: "https://cmux.dev", siteName: "cmux", type: "website", @@ -41,7 +46,7 @@ export const metadata: Metadata = { card: "summary", title: "cmux — The terminal built for multitasking", description: - "Native macOS terminal built on Ghostty. Vertical tabs, notification rings, split panes, and a socket API.", + "Native macOS terminal for AI coding agents. Works with Claude Code, Codex, OpenCode, Gemini CLI, Kiro, Aider, and any CLI tool.", }, metadataBase: new URL("https://cmux.dev"), }; @@ -51,11 +56,38 @@ export default function RootLayout({ }: Readonly<{ children: React.ReactNode; }>) { + const jsonLd = { + "@context": "https://schema.org", + "@type": "SoftwareApplication", + name: "cmux", + operatingSystem: "macOS", + applicationCategory: "DeveloperApplication", + url: "https://cmux.dev", + downloadUrl: + "https://github.com/manaflow-ai/cmux/releases/latest/download/cmux-macos.dmg", + description: + "Native macOS terminal built on Ghostty. Works with Claude Code, Codex, OpenCode, Gemini CLI, Kiro, Aider, and any CLI tool. Vertical tabs, notification rings, split panes, and a socket API.", + keywords: + "terminal, macOS, Claude Code, Codex, OpenCode, Gemini CLI, Kiro, Aider, AI coding agents, Ghostty", + offers: { "@type": "Offer", price: "0", priceCurrency: "USD" }, + }; + return ( + +