Skip to content

feat: discover repositories from current checkout - #82

Merged
fschrhunt merged 2 commits into
mainfrom
fix-unnamed-worktree
Aug 13, 2026
Merged

feat: discover repositories from current checkout#82
fschrhunt merged 2 commits into
mainfrom
fix-unnamed-worktree

Conversation

@fschrhunt

Copy link
Copy Markdown
Owner

Problem

Repositories cloned directly with Git beneath repos/ were not convenient to use because new still required an explicit repository argument. Creating a task after cloning an empty repository also failed, and manually deleted task folders left stale Git metadata without an actionable cleanup instruction.

Solution

  • Let zero-argument ws new discover the base repository containing the current directory when it lives directly beneath repos/.
  • Continue discovering repositories and worktrees from the filesystem and Git metadata rather than adding a persistent index.
  • Create an unborn task branch when a cloned repository has no commits.
  • Keep manually deleted task folders out of ws list, while having ws doctor report stale metadata and recommend git worktree prune.
  • Update help, documentation, the generated collection guide, and focused regression tests.

Validation

  • make check
  • 47 Bats tests pass
  • bin/workspaces help

Release and safety notes

  • No public command behavior changed.
  • CHANGELOG.md has an Unreleased entry when user-visible behavior changed.
  • No secrets, private infrastructure, or generated local state is included.

Public behavior intentionally changes by allowing workspaces new with no arguments from a base checkout.

fschrhunt and others added 2 commits August 12, 2026 22:30
Allow zero-argument task creation from repositories cloned directly beneath repos/, support empty repositories, and improve stale worktree diagnostics.

Co-authored-by: pi-integration[bot] <316040015+pi-integration[bot]@users.noreply.github.com>
Resolve documentation conflicts with the setup wizard while preserving both user-facing changes.

Co-authored-by: pi-integration[bot] <316040015+pi-integration[bot]@users.noreply.github.com>
@fschrhunt
fschrhunt merged commit 6b4a803 into main Aug 13, 2026
4 checks passed
@fschrhunt
fschrhunt deleted the fix-unnamed-worktree branch August 13, 2026 04:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant