diff --git a/cmd/bd/list.go b/cmd/bd/list.go index 0127e585..565823ad 100644 --- a/cmd/bd/list.go +++ b/cmd/bd/list.go @@ -795,6 +795,9 @@ var listCmd = &cobra.Command{ } listArgs.Overdue = filter.Overdue + // Pass through --allow-stale flag for resilient queries (bd-dpkdm) + listArgs.AllowStale = allowStale + resp, err := daemonClient.List(listArgs) if err != nil { fmt.Fprintf(os.Stderr, "Error: %v\n", err) diff --git a/internal/rpc/protocol.go b/internal/rpc/protocol.go index 347f15ef..362292cb 100644 --- a/internal/rpc/protocol.go +++ b/internal/rpc/protocol.go @@ -255,6 +255,9 @@ type ListArgs struct { DueAfter string `json:"due_after,omitempty"` // ISO 8601 format DueBefore string `json:"due_before,omitempty"` // ISO 8601 format Overdue bool `json:"overdue,omitempty"` // Filter issues where due_at < now + + // Staleness control (bd-dpkdm) + AllowStale bool `json:"allow_stale,omitempty"` // Skip staleness check, return potentially stale data } // CountArgs represents arguments for the count operation