Skip to content

Lane copy keeps directories that were moved or deleted in the worktree #628

Done

Description

@fen89

devstack 0.53.0, Windows 11, lane started with devstack up --on local from a git worktree.

What happened

  1. A lane was running from its worktree.
  2. In the worktree, a directory with two files was renamed: git mv org/agents/a org/agents/b.
  3. The lane copy under .devstack/lane-<name>/lanes/main/src/ received org/agents/b/v1/ with both files, and the two files under org/agents/a/v1/ were removed, but the directory org/agents/a/v1/ stayed behind, empty.

Expected

A directory that no longer exists in the worktree also disappears from the lane copy.

Impact

Services that enumerate directories see a phantom entry. Here the API reads one folder per definition and reported "agent.yaml missing" for the old folder on every reload, until the empty directory was deleted by hand in the lane copy.

Not verified

Seen once. Not checked whether a plain rm -r (without git mv) behaves the same, or whether it also happens on Linux.

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

Metadata

Metadata

Assignees

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