From 44485bcf3561129b9e6ad6e449ce2c6b25f2a2b4 Mon Sep 17 00:00:00 2001 From: aleiby Date: Sat, 24 Jan 2026 17:11:00 -0800 Subject: [PATCH] fix(rpc): populate dependencies in handleList response (#1300) The daemon server's handleList was returning dependency counts but not the actual dependency records. This complements PR #1296 which fixed the direct CLI path. Code paths now fixed: - Direct (--no-daemon): cmd/bd/list.go (PR #1296) - Daemon (default): internal/rpc/server_issues_epics.go (this PR) Fixes bd-d240 Co-authored-by: Claude Opus 4.5 --- internal/rpc/server_issues_epics.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/internal/rpc/server_issues_epics.go b/internal/rpc/server_issues_epics.go index 25ee8ed3..eb421198 100644 --- a/internal/rpc/server_issues_epics.go +++ b/internal/rpc/server_issues_epics.go @@ -1313,6 +1313,12 @@ func (s *Server) handleList(req *Request) Response { } depCounts, _ := store.GetDependencyCounts(ctx, issueIDs) + // Populate dependencies for JSON output + allDeps, _ := store.GetAllDependencyRecords(ctx) + for _, issue := range issues { + issue.Dependencies = allDeps[issue.ID] + } + // Build response with counts issuesWithCounts := make([]*types.IssueWithCounts, len(issues)) for i, issue := range issues {