diff --git a/experimental/papyrus/client/src/components/AgentNode/AgentNodeContextMenu.tsx b/experimental/papyrus/client/src/components/AgentNode/AgentNodeContextMenu.tsx
index 8e0a5fa..9623a8e 100644
--- a/experimental/papyrus/client/src/components/AgentNode/AgentNodeContextMenu.tsx
+++ b/experimental/papyrus/client/src/components/AgentNode/AgentNodeContextMenu.tsx
@@ -1,16 +1,16 @@
import { createPortal } from "react-dom";
-import { Trash2 } from "lucide-react";
+import { Archive } from "lucide-react";
interface AgentNodeContextMenuProps {
position: { x: number; y: number };
onClose: () => void;
- onDelete: () => void;
+ onArchive: () => void;
}
export function AgentNodeContextMenu({
position,
onClose,
- onDelete,
+ onArchive,
}: AgentNodeContextMenuProps) {
return createPortal(
,
document.body
diff --git a/experimental/papyrus/client/src/components/AgentNode/index.tsx b/experimental/papyrus/client/src/components/AgentNode/index.tsx
index ff2c0a1..6619528 100644
--- a/experimental/papyrus/client/src/components/AgentNode/index.tsx
+++ b/experimental/papyrus/client/src/components/AgentNode/index.tsx
@@ -39,7 +39,7 @@ export const AgentNode = ({ id, data, selected }: NodeProps) => {
const {
contextMenu,
handleContextMenu,
- handleDelete,
+ handleArchive,
closeContextMenu,
} = useAgentNodeState(id, nodeData, session);
@@ -75,7 +75,7 @@ export const AgentNode = ({ id, data, selected }: NodeProps) => {
)}
>
diff --git a/experimental/papyrus/client/src/components/AgentNode/useAgentNodeState.ts b/experimental/papyrus/client/src/components/AgentNode/useAgentNodeState.ts
index 631de49..364e815 100644
--- a/experimental/papyrus/client/src/components/AgentNode/useAgentNodeState.ts
+++ b/experimental/papyrus/client/src/components/AgentNode/useAgentNodeState.ts
@@ -38,7 +38,7 @@ export function useAgentNodeState(
setContextMenu({ x: e.clientX, y: e.clientY });
};
- const handleDelete = async () => {
+ const handleArchive = async () => {
const sessionId = session?.sessionId || nodeData.sessionId;
if (sessionId) {
await fetch(`/api/sessions/${sessionId}`, { method: "DELETE" });
@@ -56,7 +56,7 @@ export function useAgentNodeState(
return {
contextMenu,
handleContextMenu,
- handleDelete,
+ handleArchive,
closeContextMenu,
};
}