@devries-cameron20 / t3code Mirror · read-only
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 04:45 UTC

main
tsx 22 lines 747 Bytes
Raw
1 import { msg } from "gt-react";
2 import { EraserIcon } from "lucide-react";
3
4 import { m, type MessageResolver } from "../../i18n/messages";
5
6 import type { ComposerBannerStackItem } from "./ComposerBannerStack";
7
8 /** Shown while `/clear` is armed; dismissing it keeps the current conversation. */
9 export function freshSessionBannerItem(
10 onUndo: () => void,
11 resolve: MessageResolver = m,
12 ): ComposerBannerStackItem {
13 return {
14 id: "fresh-session",
15 variant: "info",
16 icon: <EraserIcon />,
17 title: resolve(msg("Your next message starts a fresh session")),
18 description: resolve(msg("The agent won't see earlier messages in this thread.")),
19 dismissLabel: resolve(msg("Keep the current session")),
20 onDismiss: onUndo,
21 };
22 }