Skip to content

Read worktrunk 0.80's wrapped wt list JSON in the shell helpers - #4

Merged
simoncrypta merged 1 commit into
masterfrom
fix-wt-list-json-080
Oct 23, 2026
Merged

simoncrypta merged 1 commit into
masterfrom
fix-wt-list-json-080

Conversation

@simoncrypta

Copy link
Copy Markdown
Owner

Summary

From worktrunk 0.80, wt list --format=json returns {schema, items: [...]}, and each item's path moves to .worktree.path. Before 0.80 it returned a plain array with .path. The shell helpers expected the old format, so _wt_worktree_path_for_branch and wts broke on 0.80.

  • _wt_list_items_jq unwraps .items when the output is an object.
  • _wt_worktree_path_for_branch reads .worktree.path and falls back to .path.
  • The wts fzf picker uses the same unwrap.

Checks

  • bash -n passes.
  • The jq filter returns the right path for both formats (a plain array with .path, and the wrapped items with .worktree.path).

🤖 Generated with Claude Code

worktrunk 0.80 returns {schema, items: [...]} with the path under
.worktree.path; older versions return a plain array with .path. The
worktree helpers and wts now accept both.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@simoncrypta
simoncrypta merged commit 61cd177 into master Oct 23, 2026
3 checks passed
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