Skip to content

[Bug] Workflow deletes from Desktop are addressed at the caller, not the workflow's author — agent-created workflows are undeletable #2671

Description

@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

  1. Have an agent create a workflow (kind:30620 authored by the agent's pubkey).
  2. In Buzz Desktop, open the Workflows page as the community owner and delete that workflow.
  3. 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, &current_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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions