Knowledge cutoff notice A date is information; a permanent “may be outdated” banner is not. The same question answered from training data and from live sources differ by whether a source list is present, and questions about current state are detectable before the answer is written. npx shadcn@latest add button Tokens this needs: --card, --card-foreground, --primary, --muted, --muted-foreground, --border, --status-warn The status, chart, scale, state and direction names are an extension, not a rename. shadcn has --destructive and five --chart-* and nothing else in this territory. ──────────────────────────────────────────────────────────────────────── // CutoffNotice.tsx ──────────────────────────────────────────────────────────────────────── import type { ReactNode } from "react"; import { Button } from "@/components/ui/button"; import { isTimeSensitive } from "./timeSensitive"; /** A cutoff belongs to a model. A product with three models has three of * them, so the notice takes the model rather than a date from a config. */ export type Model = { name: string; cutoff: Date }; type Props = { /** The answer this notice is attached to. */ children: ReactNode; /** What was asked. Time-sensitive questions get the notice; the rest do not. */ question: string; model: Model; /** What the answer was checked against. A non-empty list suppresses the * notice: the sources are the signal, and their absence is what this line * has to say out loud. */ sources?: string[]; /** The one-click path from a recalled answer to a checked one. */ onSearch: () => void; }; const monthYear = (d: Date) => d.toLocaleDateString("en", { month: "long", year: "numeric", timeZone: "UTC" }); export function CutoffNotice({ children, question, model, sources = [], onSearch }: Props) { const show = sources.length === 0 && isTimeSensitive(question); return (
no sources, so nothing was checked
Vite 5 is still receiving security fixes but no new features. Vite 6 changed the default
environment API, so moving the build means updating any plugin that reads
config.server
directly. Your slow build is more likely the three unbundled icon packs than the Vite version.