Skip to content

fix(claude): write hook markers without re-executing wt - #4619

Merged
max-sixty merged 3 commits into
mainfrom
fix/issue-4618
Nov 1, 2026
Merged

max-sixty merged 3 commits into
mainfrom
fix/issue-4618

Conversation

@worktrunk-bot

Copy link
Copy Markdown
Collaborator

Claude Code marker hooks now write through the repository already discovered by the hook process. This removes the nested wt config state marker invocation and its repeat repository discovery and worktree listing. Marker events remain silent and keep their existing best-effort behavior; the regression test failed on the old Stop hook's stderr output and passes with the in-process write. The five Claude hook integration tests pass.

This addresses the synchronous process overhead. Async registrations still need ordered writes and Git config lock handling, so #4618 stays open for that work.

Refs #4618 — automated triage

@worktrunk-bot worktrunk-bot left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The lint check fails because cargo fmt rewrites the new assertion. The inline suggestion matches the formatter's output.

Comment thread tests/integration_tests/claude_hook.rs Resolved
@max-sixty
max-sixty merged commit 4a3ac94 into main Nov 1, 2026
37 checks passed
@max-sixty
max-sixty deleted the fix/issue-4618 branch November 1, 2026 04:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants