Repository navigation
docs: note that the Claude desktop app skips the plugin's worktree hooks - #4777
Open
worktrunk-bot wants to merge 1 commit into
Open
worktrunk-bot wants to merge 1 commit into
worktrunk-bot wants to merge 1 commit into
Conversation
The Claude desktop app creates session worktrees itself and never runs a plugin's WorktreeCreate/WorktreeRemove hooks (anthropics/claude-code#29716), so those worktrees bypass wt. Closes #4776
This was referenced Nov 13, 2026
This branch has not been deployed
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.
The Agent Integration page says the plugin's
WorktreeCreate/WorktreeRemovehooks route Claude Code worktrees throughwt, without saying that this doesn't apply to worktree sessions started from the Claude desktop app. The app creates those worktrees itself, under.claude/worktrees/, and doesn't call plugin worktree hooks. Upstream tracks this in anthropics/claude-code#29716, which is still open. This PR adds one sentence to the worktree isolation section saying so and linking that issue, and regenerates the two skill mirrors.test_docs_are_in_syncpasses.The page doesn't recommend the workaround from #4776, which is to copy the hooks into
~/.claude/settings.jsonand disable the plugin. Two things count against it. Disabling the plugin drops/wt-switch-createand/wt-diff, and the CLI runs both copies when both are enabled. The upstream thread also disagrees on whether settings-file hooks run in the desktop app: one report says they do, and a later one says they don't. The workaround stays documented on the issue for anyone who wants that trade.Closes #4776 — automated triage