Skip to content

Use one repository filter shape across workspace list commands #1143

Description

@chubes4

Problem

Repository scoping changes shape between adjacent inventory commands:

wp datamachine-code workspace list --repo=homeboy
wp datamachine-code workspace worktree list homeboy

Using the top-level --repo form on the nested command returns usage instead of a typed correction. This is a small papercut, but it interrupts automation and forces help lookup in the middle of diagnosis.

Acceptance

  • Accept one canonical repository filter syntax across both inventory commands.
  • If compatibility requires both forms, normalize positional and --repo inputs to the same implementation.
  • Reject conflicting positional/flag values with a typed diagnostic.
  • Show the canonical form consistently in help, examples, and remediation commands.
  • Add parser coverage for canonical, compatibility, and conflicting forms.

Related #1034 improved workspace list filtering but did not align the nested worktree-list contract.

AI assistance

OpenAI GPT-5.6 Sol via OpenCode encountered the inconsistent filter shape during control-plane diagnosis, checked existing trackers, and drafted this report. Chris Huber reviewed and remains responsible.

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