From d0036b0768c5d97566ca3e65b8f972270c18c954 Mon Sep 17 00:00:00 2001 From: mayor Date: Mon, 26 Jan 2026 10:36:43 -0800 Subject: [PATCH] fix(beads): handle deprecated Type field in listViaRPC The RPC path for List operations was not converting opts.Type to a label, causing all issues to be returned when the daemon was running. This resulted in gt mq list showing all beads (including wisps) instead of just merge-requests. The subprocess fallback path had this conversion, but RPC did not. Co-Authored-By: Claude Opus 4.5 --- internal/beads/beads_rpc.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/internal/beads/beads_rpc.go b/internal/beads/beads_rpc.go index fd712a02..383d9485 100644 --- a/internal/beads/beads_rpc.go +++ b/internal/beads/beads_rpc.go @@ -242,8 +242,12 @@ func (b *Beads) listViaRPC(opts ListOptions) ([]*Issue, error) { } // Convert Label to Labels array if set + // Also handle deprecated Type field by converting to gt: label if opts.Label != "" { args.Labels = []string{opts.Label} + } else if opts.Type != "" { + // Deprecated: convert type to label for backward compatibility + args.Labels = []string{"gt:" + opts.Type} } // Handle priority: -1 means no filter