MCPcopy Create free account
hub / github.com/enowdev/enowX-Coder / confirmDelete

Function confirmDelete

src/components/layout/ChatHeader.tsx:112–123  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

110 };
111
112 const confirmDelete = async () => {
113 setDeleteConfirmOpen(false);
114 if (!activeSessionId) return;
115 removeSession(activeSessionId);
116 useChatStore.getState().setMessages([]);
117 useAgentStore.getState().setAgentRuns([]);
118 try {
119 await invoke('delete_session', { id: activeSessionId });
120 } catch (e) {
121 console.error('Failed to delete session:', e);
122 }
123 };
124
125
126

Callers 1

ChatHeaderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected