Skip to content

Worktree name selectors return selector_not_found #5695

Closed

Description

@wolfiesch

Problem

name:<displayName> works for repo selectors but worktree commands reject the same selector shape with selector_not_found, even when the worktree has that display name.

Reproduction

orca worktree create --repo name:orca --name fix-worktree-name-selector --setup skip --json
orca worktree show --worktree name:fix-worktree-name-selector --json

Observed:

{"ok":false,"error":{"code":"selector_not_found","message":"selector_not_found"}}

Control selectors resolve the same worktree:

orca worktree show --worktree path:/Users/wolfgangschoenberger/orca/workspaces/orca/fix-worktree-name-selector --json
orca worktree show --worktree branch:wolfiesch/fix-worktree-name-selector --json

Expected

Worktree selectors should support name:<displayName> consistently across worktree show, worktree set, worktree rm, terminal targeting, browser targeting, and other commands that route through runtime worktree selector resolution.

Root cause

OrcaRuntimeService.resolveWorktreeSelector handles id:, path:, branch:, and issue: prefixes, but has no name: branch. Repo selector resolution already supports name:.

Proposed fix

Add name: matching against resolved worktree displayName, add a regression test, and update CLI/skill selector help.

Activity

  1. added
    size/s
    on Jun 18, 2026
  2. Jinwoo-H commented on Jun 19, 2026

    @Jinwoo-H
    Contributor

    will be in next release, usually within 24 hours

  3. added theissue type on Jul 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

size/s

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions