Skip to content
TypeScript

fix(web): show No project in scratch thread breadcrumbs (#19721)

Greg Woulfe43076b57cbd6
diff --git a/apps/web/src/components/chat/ChatHeader.tsx b/apps/web/src/components/chat/ChatHeader.tsx
index d7f1cefd038..3e1b0bdd4b3 100644
--- a/apps/web/src/components/chat/ChatHeader.tsx
+++ b/apps/web/src/components/chat/ChatHeader.tsx
@@ -77,7 +77,7 @@ export const ChatHeader = memo(function ChatHeader({
onNewThreadInProject,
onOpenProjectSettings,
}: ChatHeaderProps) {
- const activeProjectName = activeProject?.title;
+ const activeProjectName = activeProject?.isScratch ? "No project" : activeProject?.title;
const activeProjectCwd = activeProject?.workspaceRoot ?? null;
const interfaceFont = useClientSettings((settings) => settings.fontFamilySans);
const breadcrumbContainerRef = useRef<HTMLDivElement>(null);