+
{title}
- {isRegeneratingTitle ? (
-
- Regenerating title
-
- ) : null}
+ {titleRegenerationIndicator}
{/* Always the branch. The plan step used to take this slot while
diff --git a/apps/web/src/components/chat/ChatHeader.tsx b/apps/web/src/components/chat/ChatHeader.tsx
index c2b1a805011ba..39385c6eb105a 100644
--- a/apps/web/src/components/chat/ChatHeader.tsx
+++ b/apps/web/src/components/chat/ChatHeader.tsx
@@ -9,7 +9,7 @@ import {
isAtomCommandInterrupted,
squashAtomCommandFailure,
} from "@t3tools/client-runtime/state/runtime";
-import { ChevronDownIcon } from "lucide-react";
+import { ChevronDownIcon, RefreshCwIcon } from "lucide-react";
import {
memo,
useCallback,
@@ -46,6 +46,7 @@ interface ChatHeaderProps {
activeThreadTitle: string;
/** Drafts have no server thread yet, so the title carries no action menu. */
isServerThread: boolean;
+ isRegeneratingTitle: boolean;
activeProject: EnvironmentProject | null;
parentThreadLink: { threadId: ThreadId; title: string } | null;
onOpenThread: (threadId: ThreadId) => void;
@@ -80,6 +81,7 @@ export const ChatHeader = memo(function ChatHeader({
activeThreadId,
activeThreadTitle,
isServerThread,
+ isRegeneratingTitle,
activeProject,
parentThreadLink,
onOpenThread,
@@ -413,9 +415,20 @@ export const ChatHeader = memo(function ChatHeader({
/>
}
>
-
+
{activeThreadTitle}
+ {isRegeneratingTitle ? (
+ <>
+
+
+ Regenerating title
+
+ >
+ ) : null}