test(hooks): cover ended→idle prepare-commit-msg (#411)#1826
Open
suhaanthayyil wants to merge 4 commits into
Open
test(hooks): cover ended→idle prepare-commit-msg (#411)#1826suhaanthayyil wants to merge 4 commits into
suhaanthayyil wants to merge 4 commits into
Conversation
Regression for the reported session-end → session-start → commit path; prepare-commit-msg still attaches Entire-Checkpoint on current main. Co-authored-by: Cursor <cursoragent@cursor.com>
Contributor
There was a problem hiding this comment.
Pull request overview
Adds an integration regression test to cover issue #411, validating that the prepare-commit-msg hook still appends an Entire-Checkpoint trailer after a Claude Code session transitions ended → idle and then proceeds with a new turn and a user git commit.
Changes:
- Introduces a new integration test that reproduces the ENDED→IDLE restart sequence and asserts
Entire-Checkpointtrailer attachment. - Verifies session phase transitions (
idle → ended → idle) and ensuresEndedAtis cleared on restart.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
gtrrz-victor
requested changes
Jul 23, 2026
| "github.com/stretchr/testify/require" | ||
| ) | ||
|
|
||
| // TestIssue411_EndedToIdle_PrepareCommitMsgAddsTrailer is the natural |
Contributor
There was a problem hiding this comment.
Can we not reference issue numbers in the code? I reckon it would be better if we described what this is testing, instead of referencing the issue that describes what the test covers.
Thaaanks!
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.
https://entire.io/gh/entireio/cli/trails/917
Summary
session-end→session-start(ENDED→IDLE) → new turn →git commit.prepare-commit-msgstill attachesEntire-Checkpointon currentmain(natural repro does not fail).Test plan
go test -tags=integration ./cmd/entire/cli/integration_test/ -run TestIssue411_EndedToIdle_PrepareCommitMsgAddsTrailerMade with Cursor