From fb0ed1162b229e54f36e2f06035614672c8cb761 Mon Sep 17 00:00:00 2001 From: Jeremy Ruppel Date: Thu, 9 Apr 2026 09:18:19 -0400 Subject: [PATCH] fix(site): replace expandable agentic loop section with cool design (#24171) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit the current page has an "Agentic loop completed" block that doesn't really contain any valuable info that isn't available elsewhere. replace this with a status indicator Screenshot 2026-04-08 at 2 47 40 PM --- .../SessionTimeline/SessionTimeline.tsx | 55 ++++--------------- 1 file changed, 10 insertions(+), 45 deletions(-) diff --git a/site/src/pages/AIBridgePage/SessionThreadsPage/SessionTimeline/SessionTimeline.tsx b/site/src/pages/AIBridgePage/SessionThreadsPage/SessionTimeline/SessionTimeline.tsx index e6de9da9bb..776e30833c 100644 --- a/site/src/pages/AIBridgePage/SessionThreadsPage/SessionTimeline/SessionTimeline.tsx +++ b/site/src/pages/AIBridgePage/SessionThreadsPage/SessionTimeline/SessionTimeline.tsx @@ -20,7 +20,6 @@ import { import { cn } from "#/utils/cn"; import { docs } from "#/utils/docs"; import { JsonPrettyPrinter } from "../../JsonPrettyPrinter"; -import { TokenBadges } from "../../TokenBadges"; import { AgenticLoopTable } from "./AgenticLoopTable"; import { PromptTable } from "./PromptTable"; import { ToolCallTable } from "./ToolCallTable"; @@ -234,44 +233,6 @@ const ToolCallBlock: FC = ({ ); }; -interface AgenticLoopCompletedBlockProps { - inputTokens: number; - outputTokens: number; - expandedByDefault?: boolean; -} - -const AgenticLoopCompletedBlock: FC = ({ - inputTokens, - outputTokens, - expandedByDefault = false, -}) => { - const [isOpen, setIsOpen] = useState(expandedByDefault); - - return ( - -
- setIsOpen(!isOpen)}> - Agentic loop completed - -
- {isOpen && ( -
-
- In / out tokens - -
-
- )} -
- ); -}; - interface AgenticActionItemProps { action: AIBridgeAgenticAction; } @@ -423,11 +384,15 @@ const ThreadItem: FC = ({ thread, initiator }) => { ))} - {/* Agentic loop completed block */} - + {/* Agentic loop completed */} + +
+ + + Agentic loop completed + +
+
)} @@ -597,7 +562,7 @@ export const SessionTimeline: FC = ({ {/* vertical line */} - {/* row 8: session start */} + {/* row 8: session completed */}