Skip to content

v0.4.1

Choose a tag to compare

@shrsv shrsv released this 28 May 10:53
· 238 commits to main since this release

Release v0.4.1

Date: 2026-05-28

inside an HTML comment so release-gh can remind you after publishing.

Published raw URL base: https://raw.githubusercontent.com/HexmosTech/git-lrc/refs/heads/main/docs/releases/img/v0.4.1/
Published raw URL example: https://raw.githubusercontent.com/HexmosTech/git-lrc/refs/heads/main/docs/releases/img/v0.4.1/demo.png
-->

Summary

This release fixes a Claude Code linked-worktree regression introduced on the Claude hook surface in v0.4.0.

If a Claude session was started from a main checkout and you later ran git commit inside a linked worktree, the Claude blocking-review wrapper could jump back to the main checkout before checking attestation state or running the final commit. That made valid worktree attestations look missing, broke disabled-claude handling in the worktree, and could send the final commit to the wrong checkout.

In v0.4.1, the Claude wrapper now runs review and commit operations from the actual directory where git commit was invoked.

Install and Update

New install:

# Linux/macOS
curl -L https://hexmos.com/ipm-install | bash && ipm i HexmosTech/git-lrc

# Windows
iwr https://hexmos.com/ipm-install-ps | iex; ipm i HexmosTech/git-lrc

Update:

lrc self-update

Changes

  • Fixed lrc hooks install --surface claude for linked worktrees so the Claude blocking-review wrapper uses the git commit invocation directory instead of the Claude session's CLAUDE_PROJECT_DIR.
  • Fixed Claude-triggered git commit in linked worktrees to reuse existing worktree attestations correctly instead of failing with Error: no diff content collected when the main checkout had no staged changes.
  • Fixed lrc hooks disable --surface claude in linked worktrees so the disabled-claude marker is read from the active worktree git dir rather than the main checkout's git dir.
  • Fixed the final Claude-wrapped git commit step so the commit lands in the worktree where the command was issued, not in the main checkout.
  • Added focused generator coverage and an end-to-end Claude linked-worktree regression test to keep this path from regressing again.

Breaking Changes

  • None.

Known Issues

  • None.