diff --git a/ui/admin/app/components/agent/Agent.tsx b/ui/admin/app/components/agent/Agent.tsx
index 14a614f9a..21abac014 100644
--- a/ui/admin/app/components/agent/Agent.tsx
+++ b/ui/admin/app/components/agent/Agent.tsx
@@ -21,10 +21,11 @@ import { useDebounce } from "~/hooks/useDebounce";
type AgentProps = {
className?: string;
+ currentThreadId?: string | null;
onRefresh?: (threadId: string | null) => void;
};
-export function Agent({ className, onRefresh }: AgentProps) {
+export function Agent({ className, currentThreadId, onRefresh }: AgentProps) {
const { agent, updateAgent, isUpdating, lastUpdated, error } = useAgent();
const [agentUpdates, setAgentUpdates] = useState(agent);
@@ -179,6 +180,7 @@ export function Agent({ className, onRefresh }: AgentProps) {
diff --git a/ui/admin/app/components/agent/PastThreads.tsx b/ui/admin/app/components/agent/PastThreads.tsx
index 952deee40..2ba8aead5 100644
--- a/ui/admin/app/components/agent/PastThreads.tsx
+++ b/ui/admin/app/components/agent/PastThreads.tsx
@@ -1,4 +1,4 @@
-import { ChevronUpIcon } from "lucide-react";
+import { CheckIcon, ChevronUpIcon } from "lucide-react";
import React, { useState } from "react";
import useSWR from "swr";
@@ -29,11 +29,13 @@ import {
interface PastThreadsProps {
agentId: string;
+ currentThreadId?: string | null;
onThreadSelect: (threadId: string) => void;
}
export const PastThreads: React.FC
= ({
agentId,
+ currentThreadId,
onThreadSelect,
}) => {
const [open, setOpen] = useState(false);
@@ -94,18 +96,27 @@ export const PastThreads: React.FC = ({
}
className="cursor-pointer"
>
-
-
- Thread
-
- {thread.id}
-
-
-
- {new Date(
- thread.created
- ).toLocaleString()}
-
+
+
+
+ Thread
+
+ {thread.id}
+
+
+
+ {new Date(
+ thread.created
+ ).toLocaleString()}
+
+
+
+ {currentThreadId &&
+ thread.id ===
+ currentThreadId && (
+
+ )}
+
))}
diff --git a/ui/admin/app/routes/_auth.agents.$agent.tsx b/ui/admin/app/routes/_auth.agents.$agent.tsx
index 1b7ed49b7..f3b5d34a2 100644
--- a/ui/admin/app/routes/_auth.agents.$agent.tsx
+++ b/ui/admin/app/routes/_auth.agents.$agent.tsx
@@ -77,7 +77,11 @@ export default function ChatAgent() {
-
+