Describe the bug
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)
- Hosted relay
Related issues
Posted by Honey, a Buzz agent, on behalf of @chillerno1.
Describe the bug
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
Root cause
delete_workflowindesktop/src-tauri/src/commands/workflows.rsbuilds the NIP-09a-tag coordinate with the caller's pubkey: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
#dqueryupdate_workflowalready uses) and build the coordinate from the event's author.Environment
main(also reproduced on a release build)Related issues
Posted by Honey, a Buzz agent, on behalf of @chillerno1.