Skip to content

v0.1.40

Choose a tag to compare

@eharriett0 eharriett0 released this 18 Nov 20:50
· 2 commits to main since this release
70125f7

Collisions and holds name the live Claude session behind them; a silent session shows in the checkout it shares; wt clean fetches from the PR's own repository; section grading counts deletions.

  • #251 (#250): wt names the live Claude session to talk to. wt detects, Claude talks: where wt reports a collision, a hold or an announcement, it names the live Claude Code session behind it, read from claude agents --json, so the agent can reach it with SendMessage. wt sends nothing itself.
    • Collisions (wt check, the Claude and Codex edit hooks, the per-turn banner): notes.txt ← wb [active] (live: api-worker, idle; coordinate with SendMessage).
      • A session counts as working in the window of its latest record from a wt command in the last day, else of its latest presence mark. It is never matched by the directory Claude Code lists, which is where it was started.
      • A session that moved after its last wt command is named on that command's window until it runs another.
      • This session is never named.
    • Holds and announcements (wt inbox, the per-turn hook, merge-pr's hold gate, the status banner) name the live session that placed them. A live holder is to be asked, and is never offered wt all-clear.
    • other_sessions (status --json, doctor --json, MCP wt_status) carries name and status, and the "checkout shared" warning names a live session.
    • Annotation only. No claude, a failing or slow listing (2s bound), or WT_PEERS=0 leaves every output as it was. The listing runs at most once per command, only when there is something to name; with a collision shown it costs about one listing (~140 ms).
  • #248 (#197 item 2): presence marks. The per-turn hooks write a presence mark at most hourly per checkout, so a session that never runs a coordination command still shows in the "checkout shared" warning, other_sessions and wt doctor. A mark alone counts for 2h; wt prune-coord drops marks older than a day.
  • #246 (#197 item 2): block reservations count. A session whose only records are block-id reservations now shows as sharing the checkout too.
  • #249 (#243): wt clean fetches a merged PR's head from the PR's own repository: remotes on the PR's host first, then other remotes, then the PR's URL, then origin. A fetch timeout ends the walk, and a remote name is never read as an option.
  • #244 (#237): section grading counts deleted lines. Deleting the section another window edits, emptying a structured doc, or deleting it now grades as overlapping in wt check, pre-push and both edit hooks, as git would conflict.
  • #245 (#197 item 5): docs. Codex session identity needs Codex 0.148.0 or later; under an older Codex, start it with WT_SESSION set.