fix(cli): infer tasks for custom worktree paths and honor raw fallback fields#24
Merged
dev-pi2pie merged 7 commits intomainfrom Feb 21, 2026
Merged
fix(cli): infer tasks for custom worktree paths and honor raw fallback fields#24dev-pi2pie merged 7 commits intomainfrom
dev-pi2pie merged 7 commits intomainfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #23
Problem
gwtt list <task> -o rawcould incorrectly fall back to the main worktree when the worktree path did not follow<repo>_<task>(for example,.claude/worktrees/<task>).Root cause: classic-mode task matching relied only on
TaskFromPath, so custom path layouts produced task"-"and no row match.What Changed
deriveClassicTaskincli/common.go:TaskFromPath).SlugifyTask(branch)) for non-main, non-detached worktrees.cli/list.gocli/status.golistto respect--field:path-> main worktree pathbranch-> fallback branchtask->-deriveClassicTaskincli/common_test.gocli/integration_test.goREADME.mddocs/schemas/config-gwtt.mdVerification
go test ./... -count=1listandstatustask lookup with custom worktree pathslist -o rawfallback behavior with different--fieldvaluesNotes
--branchremains the explicit/authoritative branch filter.