Repository navigation
v0.1.34
Ten bug fixes from a pass over every open wt bug, three of them found along the way. Each one was adversarially reviewed, mutation-tested and smoke-tested end to end. Also ships five earlier merges that hadn't been released.
Data loss: merge-pr's auto-clean
- #185 —
merge-prremoved the PR's worktree and local branch whenevergh pr mergeexited 0. But gh exits 0 without merging for--help,--auto,--disable-auto, a merge queue (no flags needed) and-R. Only a PR that reads MERGED afterwards is now verified and auto-cleaned; anything else keeps the lane. - #187 — even after a real squash merge, auto-clean ran
git branch -Don a branch holding commits that were never pushed. The lane is now removed only when the local tip is the PR's merged head, or an ancestor of it. Otherwise it is kept, with a count of the commits that didn't ship.
Collision detection
- #184 — a branch behind base was charged with every line base changed after it forked, giving false HIGHs that blocked pushes. Ranges are now the window's own edits in base line numbers, with git's 3-way conflict rule where a stale hunk touches a base change. The pre-edit hooks now re-grade the pending edit exactly.
- #181 — a repo-root file collided with a same-named file in a subdirectory another window edits. A real path now matches exactly; only a
wt checkargument that names nothing is a fuzzy search. A committed move is listed under both its paths, and MCPwt_checkpaths are relative to the repo root. - #193 — when two windows shared a label,
wt checkand pre-push graded a conflict against the wrong window and could hide a HIGH. - #182 — the per-turn banner and
wt statusnow grade overlaps the waywt checkdoes: merged, dormant and closed windows are dropped, and HIGH means the pair blocks both ways. Contract change: status JSONoverlaps[].windowsomits suppressed windows, and--blockingcan exit 0 where only suppressed windows were HIGH.
Coordination
- #163 — two sessions in one checkout (two Claude Code sessions, Claude and a terminal, two Codex sessions) counted as one party, so one's hold never gated the other. Records now carry a session (
WT_SESSION→CLAUDE_CODE_SESSION_ID→CODEX_SESSION_ID), and hold advice leads withwt ack. Note:/clearstarts a new Claude session id, so a hold placed before/cleargates the session after it (the gate says so).
merge-pr, adopt, doctor
- #180 — the close check judges the body that actually ships when one is forwarded (
--body,--body-file,-F -), and wt's own--admin/--subjectnow go before the passthrough. - #167 —
wt adopt <pr>checked out a stale same-named local branch instead of the PR head. It now checks the local branch against the PR head on origin, fast-forwards only when that's safe, and refuses a fork head that origin doesn't carry. - #183 — outside a repo,
wt doctornow readsgh auth statusper host instead of reporting "NOT authenticated" because one other host was unreachable.
Earlier, unreleased: #165 (negated/qualified close keywords gate the merge), #171 (PR lookup by tip commit; wt clean <name>...), #173 (gh auth check memoized per host), #176 (wt clean never lists a dirty worktree as removable).