Skip to content

/write delete_tag returns success but leaves the tag on items #5

@dzackgarza

Description

@dzackgarza

Observed against the live local add-on on 2026-03-11.

Repro:

  • Installed add-on reports GET http://127.0.0.1:23119/version -> version: 3.2.0
  • Add two real tags to an existing item, e.g. raw-delete-tag-bf720091 and raw-keep-tag-30cc439f
  • POST directly to http://127.0.0.1:23119/write with:
    {
      "operation": "delete_tag",
      "tag_name": "raw-delete-tag-bf720091"
    }

Observed result:

  • HTTP 200
  • Body:
    {
      "success": true,
      "operation": "delete_tag",
      "stage": "completed",
      "version": "3.2.0",
      "details": {
        "tag_name": "raw-delete-tag-bf720091"
      }
    }
  • Immediate read-back of the same item still shows both tags present:
    ['raw-delete-tag-bf720091', 'raw-keep-tag-30cc439f']
    

Expected:

  • delete_tag should remove the named tag from all matching items, or return a failure if the operation did not actually take effect.

Likely suspect:

  • handleDeleteTag() currently calls Zotero.Tags.removeFromLibrary(...). The endpoint reports success, but the tag remains present on item read-back.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions