Use the operator git identity for session checkpoints - #721
Merged
TheGreatAxios merged 2 commits intoAug 30, 2026
Merged
Conversation
Cycle commits shell out to system git with a synthetic harness author, so operator commit-author hooks reject every tool cycle. Using global user.name and user.email when both are set makes those hooks see a real identity.
Keep author resolution file-private and drain git-config stderr so piped git children cannot stall. Tests drive the default path through the store with an isolated GIT_CONFIG_GLOBAL and pin both author and committer.
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
user.nameanduser.emailwhen both are set, so commit-author hooks see a real identity.Cycle commits go through system git. A hardcoded harness identity made every tool cycle fail on hosts with an author allowlist.
Verification
bun run typecheckandbun run buildpassbunx prettier --checkpasses on the touched filesbun test ./src/session/optimized-context-store.test.ts— 25 pass, 0 failbun run teston this host still fails 36 git-fixture cases whose authors are rejected by a user-levelallowed-emailshook; unrelated to this branchFixes CL-7183