Skip to content

v0.1.34

Choose a tag to compare

@eharriett0 eharriett0 released this 09 Oct 13:38
· 31 commits to main since this release
v0.1.34
41124f8

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-pr removed the PR's worktree and local branch whenever gh pr merge exited 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 -D on 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 check argument that names nothing is a fuzzy search. A committed move is listed under both its paths, and MCP wt_check paths are relative to the repo root.
  • #193 — when two windows shared a label, wt check and pre-push graded a conflict against the wrong window and could hide a HIGH.
  • #182 — the per-turn banner and wt status now grade overlaps the way wt check does: merged, dormant and closed windows are dropped, and HIGH means the pair blocks both ways. Contract change: status JSON overlaps[].windows omits suppressed windows, and --blocking can 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 with wt ack. Note: /clear starts a new Claude session id, so a hold placed before /clear gates 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/--subject now 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 doctor now reads gh auth status per 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).