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
[Bug] Workflow deletes from Desktop are addressed at the caller, not the workflow's author — agent-created workflows are undeletable #2671
Deleting an agent-created workflow from the desktop app appears to succeed — the UI reports success and the row's delete action completes — but the workflow keeps running and stays in the list. Since workflows are commonly created by agents, this makes most workflows effectively undeletable from the UI.
To reproduce
Have an agent create a workflow (kind:30620 authored by the agent's pubkey).
In Buzz Desktop, open the Workflows page as the community owner and delete that workflow.
Observe: no error, but the workflow remains listed and continues to fire on its trigger.
Root cause
delete_workflow in desktop/src-tauri/src/commands/workflows.rs builds the NIP-09 a-tag coordinate with the caller's pubkey:
let builder = events::build_workflow_delete(&workflow_id,¤t_pubkey_hex(&state)?)?;
kind:30620 is addressable by (author, d-tag). For an agent-created workflow, 30620:<caller>:<workflow-id> names a record that does not exist. The relay accepts the kind:5 (a self-addressed delete always passes validation) and deletes nothing; the UI reports success.
Observed live against a hosted relay: the delete event carried ["a","30620:<human-pubkey>:<workflow-uuid>"] while the kind:30620 event is authored by the agent — the coordinate can never match.
Expected behavior
Deleting a workflow from the UI removes it: the delete coordinate should name the workflow's actual author, so the relay can act on it.
Fix
PR #2669 fixes this client-side: fetch the workflow's kind:30620 event first (the same #d query update_workflow already uses) and build the coordinate from the event's author.
Environment
OS: macOS (aarch64)
Buzz Desktop, current main (also reproduced on a release build)
Activity
fix(desktop): address workflow deletions at the workflow's actual own…
fix(desktop): address workflow deletions at the workflow's actual own…