From dedde444cc90f9a6d8c174cd18cf7694d05dee5c Mon Sep 17 00:00:00 2001 From: aleiby Date: Sat, 24 Jan 2026 17:09:45 -0800 Subject: [PATCH] fix(list): populate dependencies field in JSON output (bd-tjxh) (#1296) Previously, `bd list --json` only included dependency_count and dependent_count but not the actual dependency records. This broke callers like `gt hook --json` that need to know what each issue depends on to determine ready steps. Now populates issue.Dependencies using GetAllDependencyRecords, matching the behavior of `bd show --json`. Co-authored-by: Claude Opus 4.5 --- cmd/bd/list.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmd/bd/list.go b/cmd/bd/list.go index 895bd828..ae18a54b 100644 --- a/cmd/bd/list.go +++ b/cmd/bd/list.go @@ -1189,10 +1189,12 @@ var listCmd = &cobra.Command{ } labelsMap, _ := store.GetLabelsForIssues(ctx, issueIDs) depCounts, _ := store.GetDependencyCounts(ctx, issueIDs) + allDeps, _ := store.GetAllDependencyRecords(ctx) - // Populate labels for JSON output + // Populate labels and dependencies for JSON output for _, issue := range issues { issue.Labels = labelsMap[issue.ID] + issue.Dependencies = allDeps[issue.ID] } // Build response with counts