Skip to content

CLI bug: issue label remove errors 'not found' for labels attached to the issue #48

Description

@IamCoder18

Copied from Huly: HULY-9

Bug: issue label remove rejects labels that ARE on the issue

Reproduction

huly issue label add HULY-4 --label security --label publication --label telemetry
huly issue label remove HULY-4 --label publication

Observed

✗ error [2]  label publication not found

But huly issue get HULY-4 --json | jq .labels returns ["security","publication","telemetry"] — the label IS attached.

Expected

The label is removed from the issue, identical to how issue label add works.

Hypothesis

label remove is probably looking up the label in a workspace-level tracker:class:IssueLabel catalog first (since findAll on that class also times out — possible related symptom) and bailing out if it cannot resolve a catalog entry by name, even though the label exists on the issue.

Workaround

Used huly issue update <ref> --unset labels to clear all, then label add to re-apply the desired subset. Destructive (wipes everything) — not safe when only some labels should be removed.

Acceptance Criteria

  • label remove succeeds when the label is attached to the issue, regardless of workspace catalog state.
  • Or: error message explicitly says "label not in workspace catalog" so the user understands why it failed.
  • Workaround for partial removal is documented if fix is non-trivial.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions