Repository navigation
feat: the session-start hook lists completed handoffs on their own line - #388
Merged
Merged
Conversation
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
The SessionStart hook keeps completed handoffs off the list that invites continuing work.
in_progressandblockedhandoffs stay under the "ask to continue one" header; completed ones become one counted line.The hook fetches up to the server's
/messagesmaximum (100) before it splits, so completed handoffs never push open ones out of the ten shown. The hook still never claims. Plugin version 0.2.0 → 0.3.0. The plugin README row anddocs/data-flow.mddescribe the new block.Owner decision: completed handoffs go on a separate line rather than out of the block.
Review notes:
HANDOFF_HEADERstill says "pending", which is the server's term for unclaimed.Related issues
Closes #385
Runtime evidence (required for ingest / retrieval / serving behavior)
The hook's
run_hookagainst the real REST app and the throwaway Postgres container (a temporary integration test, not committed). It seeded 12 completed, 1 in_progress, and 1 blocked handoff in one repo scope:(The card line fails because the throwaway DB has no
claude-codeentity.)RED before each fix:
2 failedat 4074d85 (completed rows printed as- … (status: completed …)),4 failedat 718e714 (ValueError: '<HANDOFF_HEADER>' is not in listfor 12 completed + 1 open).Verification
uv run pytestpasses —tests/integrationsunit: 161 passeduv run ruff format --check .anduv run ruff check .passdocker compose build mcppasses (Dockerfile / dependency changes) — N/A, no dependency changeChecklist (core principles)
doc_rowsand theturnslane.envskip-testslabel justified)