Files
learnharness/app/chat/new/page.tsx
T

14 lines
557 B
TypeScript
Raw Normal View History

import { NewSession } from "@/components/new-session";
export const dynamic = "force-dynamic";
/**
* The draft view behind "+ New session" (owner, 2026-09-13): NO session is
* created until the first message is sent — the view is a sessionless empty
* chat; on send it creates the chat (title = that message) and redirects to
* the real page, whose initialPrompt path delivers the message as turn 1.
* Static segment beats the dynamic [id] route — "new" is never a chat id.
*/
export default function NewSessionPage() {
return <NewSession />;
}