fix(beads): handle deprecated Type field in listViaRPC
CI / Check for .beads changes (push) Has been skipped
CI / Check embedded formulas (push) Failing after 19s
CI / Test (push) Failing after 1m12s
CI / Lint (push) Failing after 22s
CI / Integration Tests (push) Failing after 36s
CI / Coverage Report (push) Has been skipped
Windows CI / Windows Build and Unit Tests (push) Has been cancelled
CI / Check for .beads changes (push) Has been skipped
CI / Check embedded formulas (push) Failing after 19s
CI / Test (push) Failing after 1m12s
CI / Lint (push) Failing after 22s
CI / Integration Tests (push) Failing after 36s
CI / Coverage Report (push) Has been skipped
Windows CI / Windows Build and Unit Tests (push) Has been cancelled
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 <noreply@anthropic.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user