import type { Metadata } from "next"; import { CopilotKit } from "@copilotkit/react-core/v2"; import "./globals.css"; import "@copilotkit/react-core/v2/styles.css"; export const metadata: Metadata = { title: "Create Next App", description: "Generated by create next app", }; export default function RootLayout({ children, }: Readonly<{ children: React.ReactNode; }>) { return ( {/* suppressHydrationWarning: browser extensions (e.g. Grammarly) inject attributes like data-gr-ext-installed onto before React hydrates, which would otherwise surface as a hydration mismatch on first load. This only relaxes the check for 's own attributes (one level deep); everything rendered inside is still fully hydration-checked. */} {/* Force REST transport so runtime-info + threads both hit the multi-route endpoint (auto-detect races the lazily-compiled API route in next dev). */} {children} ); }