What happened?
prepare-commit-msg hook silently fails to add Entire-Checkpoint trailer
Environment
- Entire CLI: v0.5.0 (0fa5295)
- OS: macOS (Darwin 25.3.0, arm64)
- Go version: go1.26.0
- Strategy: manual-commit
- Agents: Claude Code, Cursor
Problem
The prepare-commit-msg hook no longer adds Entire-Checkpoint trailers to commits, despite an active session being present. The hook runs successfully (exit 0) but does not modify the commit message. No error output is produced, even when 2>/dev/null is removed from the hook.
This was previously working and stopped. It might have broken when addressing hanging git activity caused due to assumptions that entire had made about existing hooks that were symlinks.
What I've tried
- Removed
2>/dev/null from the prepare-commit-msg hook to check for hidden errors — no errors are produced, the hook just silently does nothing.
- Tested the hook directly:
entire hooks git prepare-commit-msg /tmp/test-msg message — exits 0 but does not modify the file contents.
- Ran
entire doctor — found 3 stuck sessions, fixed them. Did not resolve the issue.
- Ran
entire disable → entire reset --force → entire enable --agent claude-code — did not resolve the issue.
- Verified session is active:
entire status shows an active session with phase: "active", correct worktree_path, and checkpoint_count > 0.
- This is not a v0.5.0 regression specifically — was also broken on v0.4.9. Upgraded to v0.5.0 hoping it would fix it.
Evidence
- Last commit with a trailer:
d87de67240 — but this was made by a different team member on the same repo, confirming the feature works in general, just not on my machine.
- All my local commits across multiple branches since ~March 10 have no
Entire-Checkpoint trailer, despite being made during active Entire sessions.
- Session state file (
.git/entire-sessions/<id>.json) looks correct: phase: "active", valid base_commit, files_touched populated, checkpoint_count: 1.
Expected behavior
When committing during an active Entire session, the prepare-commit-msg hook should append an Entire-Checkpoint trailer to the commit message.
Actual behavior
The hook exits 0 and the commit message is not modified. No error output on stderr.
Reproduction
# Start a Claude Code session (Entire shows it as active in `entire status`)
# Make a change and commit:
echo "# test" >> README.md
git add README.md
git commit -m "test entire trailer"
git log -1 --format="%B"
# Output: "test entire trailer" — no Entire-Checkpoint trailer
Steps to reproduce
No response
Entire CLI version
Entire CLI 0.5.0 (0fa5295)
OS and architecture
Darwin 25.3.0 arm64
Agent
Claude Code
Terminal
No response
Logs / debug output
Additional context
No response
What happened?
prepare-commit-msghook silently fails to addEntire-CheckpointtrailerEnvironment
Problem
The
prepare-commit-msghook no longer addsEntire-Checkpointtrailers to commits, despite an active session being present. The hook runs successfully (exit 0) but does not modify the commit message. No error output is produced, even when2>/dev/nullis removed from the hook.This was previously working and stopped. It might have broken when addressing hanging git activity caused due to assumptions that
entirehad made about existing hooks that were symlinks.What I've tried
2>/dev/nullfrom theprepare-commit-msghook to check for hidden errors — no errors are produced, the hook just silently does nothing.entire hooks git prepare-commit-msg /tmp/test-msg message— exits 0 but does not modify the file contents.entire doctor— found 3 stuck sessions, fixed them. Did not resolve the issue.entire disable→entire reset --force→entire enable --agent claude-code— did not resolve the issue.entire statusshows an active session withphase: "active", correctworktree_path, andcheckpoint_count > 0.Evidence
d87de67240— but this was made by a different team member on the same repo, confirming the feature works in general, just not on my machine.Entire-Checkpointtrailer, despite being made during active Entire sessions..git/entire-sessions/<id>.json) looks correct:phase: "active", validbase_commit,files_touchedpopulated,checkpoint_count: 1.Expected behavior
When committing during an active Entire session, the
prepare-commit-msghook should append anEntire-Checkpointtrailer to the commit message.Actual behavior
The hook exits 0 and the commit message is not modified. No error output on stderr.
Reproduction
Steps to reproduce
No response
Entire CLI version
Entire CLI 0.5.0 (0fa5295)
OS and architecture
Darwin 25.3.0 arm64
Agent
Claude Code
Terminal
No response
Logs / debug output
Additional context
No response