Skip to content

feat: session summary command#2508

Closed
MelsovCOZY wants to merge 3 commits intogastownhall:mainfrom
MelsovCOZY:feat/session-summary
Closed

feat: session summary command#2508
MelsovCOZY wants to merge 3 commits intogastownhall:mainfrom
MelsovCOZY:feat/session-summary

Conversation

@MelsovCOZY
Copy link
Copy Markdown
Contributor

Summary

  • Adds bd summary <epic-id> -- timeline of epic's children with completion status
  • Adds bd summary --since=DATE -- all work closed since date
  • Adds bd summary --session -- current session's closed work (uses CLAUDE_SESSION_ID)
  • All modes support --json for structured output
  • Fixes bug where closed_by_session was written to DB but never read back (issue_scan.go)
  • No schema changes required

Test plan

  • Epic summary shows all children with close dates
  • Date range filters correctly
  • Session mode matches by session ID
  • Session mode errors when CLAUDE_SESSION_ID unset
  • JSON output is valid JSON

🤖 Generated with Claude Code

MelsovCOZY and others added 3 commits March 11, 2026 12:44
Add three summary modes for reviewing completed work:
- bd summary <epic-id>: timeline of epic's children with completion stats
- bd summary --since=DATE: all work closed since a date
- bd summary --session: current session's closed work (uses CLAUDE_SESSION_ID)

All modes support --json for structured output. Also fixes a bug where
closed_by_session was written but never read back from the database,
making session-based queries return no results.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The return value of withStorage() was not being checked in the summary
command's Run function. This fixes the errcheck lint violation at
cmd/bd/summary.go:140.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…#2508)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@steveyegge
Copy link
Copy Markdown
Collaborator

Thanks for the idea! We are passing on this as a standalone command -- the useful parts (epic timeline with completion status) would be better as an enhancement to existing commands like bd show --children, rather than 427 lines of new command. The --session mode also couples us to Claude Code internals (CLAUDE_SESSION_ID) which we want to avoid.

We are filing an internal issue to improve our epic display though -- your PR highlighted a real gap there.

@steveyegge steveyegge closed this Mar 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants