Skip to content

Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.

Go

fix(views): hide archived agents from runtime detail (#2097)

Thanh Minh00cde21724b6
diff --git a/packages/views/runtimes/components/runtime-detail.tsx b/packages/views/runtimes/components/runtime-detail.tsx
index faba56b6e4..c6b9e972ba 100644
--- a/packages/views/runtimes/components/runtime-detail.tsx
+++ b/packages/views/runtimes/components/runtime-detail.tsx
@@ -119,7 +119,9 @@ export function RuntimeDetail({ runtime }: { runtime: AgentRuntime }) {
const isRuntimeOwner = user && runtime.owner_id === user.id;
const canDelete = isAdmin || isRuntimeOwner;
- const servingAgents = agents.filter((a) => a.runtime_id === runtime.id);
+ const servingAgents = agents.filter(
+ (a) => a.runtime_id === runtime.id && !a.archived_at,
+ );
const handleDelete = () => {
deleteMutation.mutate(runtime.id, {