[BUG] accept edits not working with worktree inside .git

Resolved 💬 7 comments Opened Nov 5, 2025 by dvic Closed Feb 5, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

When using worktrees stored in .git/..... (for example when using https://github.com/aku11i/phantom) then the accept edits feature is not working, every edit needs to be manually approved!

What Should Happen?

It should work like any other folder.

Error Messages/Logs

Steps to Reproduce

  1. create a worktree inside .git/phantom/worktrees
  2. ask 'write a poem about ai in poem.txt' with accepts edit on

Claude Model

Sonnet (default)

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

v2.0.33

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

_No response_

View original on GitHub ↗

This issue has 7 comments on GitHub. Read the full discussion on GitHub ↗