"use client"; import { CopilotChat, CopilotChatConfigurationProvider, CopilotThreadsDrawer, } from "@copilotkit/react-core/v2"; import styles from "./page.module.css"; const agentId = "default"; export default function CopilotKitPage() { return ( /* One UNCONTROLLED CopilotChatConfigurationProvider (no `threadId` prop) owns the active thread for the whole surface. The SDK drives it directly — picking a row sets the active thread, "+ New" resets to a fresh thread (clearing the chat) — with no host thread-state. The chat reads the same active thread from the provider. A *controlled* provider would block "+ New" from resetting, so uncontrolled-inside-provider is required. */
{/* SDK threads drawer (replaces the hand-rolled fork). License-gated: the locked view's Upgrade CTA opens the Intelligence docs by default. */}
); }