feat: session summary command#2508
Closed
MelsovCOZY wants to merge 3 commits intogastownhall:mainfrom
Closed
Conversation
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>
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
bd summary <epic-id>-- timeline of epic's children with completion statusbd summary --since=DATE-- all work closed since datebd summary --session-- current session's closed work (uses CLAUDE_SESSION_ID)--jsonfor structured outputclosed_by_sessionwas written to DB but never read back (issue_scan.go)Test plan
🤖 Generated with Claude Code