Open History to see the last commit
1import { EraserIcon } from "lucide-react";
2
3import type { ComposerBannerStackItem } from "./ComposerBannerStack";
4
5/** Shown while `/clear` is armed; dismissing it keeps the current conversation. */
6export function freshSessionBannerItem(onUndo: () => void): ComposerBannerStackItem {
7 return {
8 id: "fresh-session",
9 variant: "info",
10 icon: <EraserIcon />,
11 title: "Your next message starts a fresh session",
12 description: "The agent won't see earlier messages in this thread.",
13 dismissLabel: "Keep the current session",
14 onDismiss: onUndo,
15 };
16}