You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 4d58dea
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: desktop/src/features/agents/ui/PersonaDeleteDialog.tsx
+25-3Lines changed: 25 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -20,6 +20,30 @@ type PersonaDeleteDialogProps = {
20
20
onOpenChange: (open: boolean)=>void;
21
21
};
22
22
23
+
/**
24
+
* Confirmation copy for deleting a persona. Pure so the cascade archival
25
+
* disclosure stays unit-testable without a renderer: whenever instances are
26
+
* cascade-deleted, each one's identity is also archived on the relay
27
+
* (NIP-IA), and that durable side effect must be disclosed before the
28
+
* destructive confirm — matching the direct agent-delete dialog.
29
+
*/
30
+
exportfunctionpersonaDeleteDescription(
31
+
persona: AgentPersona|null,
32
+
instanceCount: number,
33
+
): string{
34
+
if(!persona){
35
+
return"Delete this agent.";
36
+
}
37
+
if(instanceCount===0){
38
+
return`Delete ${persona.displayName}.`;
39
+
}
40
+
constcascade=
41
+
instanceCount===1
42
+
? "Also deletes 1 agent instance and archives its identity on the relay, so it no longer appears in member lists or mention suggestions."
43
+
: `Also deletes ${instanceCount} agent instances and archives their identities on the relay, so they no longer appear in member lists or mention suggestions.`;
<li>Removes the local management record and saved agent key</li>
320
320
<li>Removes the agent from every channel it belongs to</li>
321
+
<li>
322
+
Archives the agent's identity on the relay so it no longer
323
+
appears in member lists or mention suggestions
324
+
</li>
321
325
<li>
322
326
{isProviderAgent
323
327
? "Requests remote deletion; if it is online, Buzz first sends a shutdown command when possible. If the deployment cannot be reached through a channel, the remote process may keep running without local management."
0 commit comments