Skip to content

code review doesn't work when using worktrees #196

Closed

Description

@alexandrekm

I love this project, to me it closes the gap to be able to review what the ai does, however I have the following issue: when I use worktrees it does not pick up changes.

Steps to reproduce:

  • open opencode without any worktree
  • the agent will create a worktree and modify the files there
  • plannotator does no see the worktree, instead it uses the state on the main branch.

The workaround is to close opencode, open again on the worktree folder, resume session and then do the review command again. Is there a way to make plannotator aware of the worktree?

Activity

  1. sushi30 commented on Mar 5, 2026

    @sushi30

    I have a similar issue. I suggest to allow annotating any commit. This way the following workflow can be supported:

    1. agent checks out in new worktree
    2. agent makes changes and commits
    3. user uses /plannotator-review
    4. select last commit from the sidebar <- new feature
    5. repeat (1)
  2. backnotprop commented on Mar 5, 2026

    @backnotprop
    Owner

    Alright, sounds good. This can be bucketed into some of the fixes I'm focused on now.

  3. backnotprop commented on Mar 7, 2026

    @backnotprop
    Owner

    You'll be able to select from worktrees in the next release.

    Image
  4. backnotprop commented on Mar 7, 2026

    @backnotprop
    Owner

    but good point @sushi30 I'll make sure it's dynamic enough to see all commits within WorkTree.

  5. backnotprop commented on Mar 7, 2026

    @backnotprop
    Owner

    This has been released in v0.11.2. Thanks for reporting @alexandrekm, and @sushi30 for the input on commit-level flexibility!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions