Skip to content

The agent that grows with you

fix(dashboard): stop ChatPage from clearing all pages' header action buttons

02356abc8c3c52b00856
diff --git a/web/src/pages/ChatPage.tsx b/web/src/pages/ChatPage.tsx
index f7432d267cc..58806c2733d 100644
--- a/web/src/pages/ChatPage.tsx
+++ b/web/src/pages/ChatPage.tsx
@@ -410,14 +410,7 @@ export default function ChatPage({ isActive = true }: { isActive?: boolean }) {
useEffect(() => {
// When hidden (non-chat tab) we must not register the header button —
// another page owns the header's end slot at that point.
- if (!isActive) {
- setEnd(null);
- return;
- }
- if (!narrow) {
- setEnd(null);
- return;
- }
+ if (!isActive || !narrow) return;
setEnd(
<Button
ghost