Skip to content

Code-Reading AI, IaC and Scan Commands Use the Worktree They Run In #613

Closed

Description

@dan-petty

Problem

#582 moved the verifying commands (ci, test, uv, release, scan complexity) onto the worktree they run in. Other commands that read, index or deploy the current tree still use the top-most root. From a worktree nested inside the main checkout, such as .claude/worktrees/<name>, they act on the main checkout instead:

  • devops ai repomap maps the main checkout's src/, so files that exist only on the worktree's branch are missing.
  • devops ai diagram arch lists the main checkout's packages.
  • devops ai ast graph comes back empty. The main checkout's .gitignore excludes .claude/, so every worktree file counts as ignored.
  • devops review auto-fix reports TARGET_FILE_NOT_FOUND for a file that exists only in the worktree.
  • devops tf deploy runs tofu init and apply in the main checkout's tf/<provider>, deploying IaC the user is not editing.
  • Kube-linter findings carry a .claude/worktrees/<name>/ prefix, so they don't match repository-relative paths.

Expected

Each of these commands reads the worktree it runs in, as the verifying commands do after #582.

Activity

  1. added this to the v0.2.23 milestone on Sep 25, 2026
  2. added
    type/bug
    scope/cli
    priority/p1-high
    on Sep 25, 2026
  3. dan-petty commented on Sep 25, 2026

    @dan-petty
    OwnerAuthor

    Closed by #614, merged into release/v0.2.23.

    GitHub only acts on closing keywords when a pull request merges into the default branch, so this was closed by devops gh issues close-merged.

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

    priority/p1-highscope/clitype/bug

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions