Visitar URL original
docs: note that the Claude desktop app skips the plugin's worktree hooks by worktrunk-bot · Pull Request #4777 · max-sixty/worktrunk · GitHub
Skip to content

docs: note that the Claude desktop app skips the plugin's worktree hooks - #4777

Open
worktrunk-bot wants to merge 1 commit into
mainfrom
docs/issue-4776
Open

worktrunk-bot wants to merge 1 commit into
mainfrom
docs/issue-4776

Conversation

@worktrunk-bot

Copy link
Copy Markdown
Collaborator

The Agent Integration page says the plugin's WorktreeCreate/WorktreeRemove hooks route Claude Code worktrees through wt, 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_sync passes.

The page doesn't recommend the workaround from #4776, which is to copy the hooks into ~/.claude/settings.json and disable the plugin. Two things count against it. Disabling the plugin drops /wt-switch-create and /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

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 branch has not been deployed

No deployments
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.

Claude desktop app skips the plugin's WorktreeCreate hook (cause and workaround)

1 participant