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 <noreply@anthropic.com>
This commit is contained in:
aleiby
2026-01-24 17:11:00 -08:00
committed by GitHub
parent 8619d08db9
commit 44485bcf35

View File

@@ -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 {