From bb05dcd6002d7f177b5f5b34f1c33b8747346115 Mon Sep 17 00:00:00 2001 From: Adam Cohen Hillel Date: Sun, 20 Apr 2025 17:03:13 +0100 Subject: [PATCH] fucking legend --- frontend/src/app/share/[threadId]/page.tsx | 30 ++++++++++++++++------ 1 file changed, 22 insertions(+), 8 deletions(-) diff --git a/frontend/src/app/share/[threadId]/page.tsx b/frontend/src/app/share/[threadId]/page.tsx index 13938e3a..adcf6e4b 100644 --- a/frontend/src/app/share/[threadId]/page.tsx +++ b/frontend/src/app/share/[threadId]/page.tsx @@ -228,11 +228,19 @@ export default function ThreadPage({ params }: { params: Promise } // Initialize as if user already closed panel to prevent auto-opening useEffect(() => { userClosedPanelRef.current = true; + // Initially hide the side panel + setIsSidePanelOpen(false); }, []); // Define togglePlayback and resetPlayback functions explicitly const togglePlayback = useCallback(() => { - setIsPlaying(prev => !prev); + setIsPlaying(prev => { + if (!prev) { + // When starting playback, show the side panel + setIsSidePanelOpen(true); + } + return !prev; + }); }, []); const resetPlayback = useCallback(() => { @@ -243,6 +251,8 @@ export default function ThreadPage({ params }: { params: Promise } setStreamingText(""); setIsStreamingText(false); setCurrentToolCall(null); + // Hide the side panel when resetting + setIsSidePanelOpen(false); }, []); const toggleSidePanel = useCallback(() => { @@ -1414,19 +1424,23 @@ export default function ThreadPage({ params }: { params: Promise } >
{visibleMessages.length === 0 && !streamingText && !currentToolCall ? ( -
-
-
+
+ {/* Gradient overlay */} +
+ +
+
-

Watch this conversation

-

- This is a shared view-only conversation. Click play to replay the entire conversation with realistic timing. +

Watch this agent in action

+

+ This is a shared view-only agent run. Click play to replay the entire conversation with realistic timing.