You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
skills(verify-diff-lifecycle): model client ownership and ClaudeCodeDiffClosed reentrancy #342
Known gaps in the verify-diff-lifecycle model (#328). The model does not cover these two paths, and SKILL.md lists both under Scope.
Client ownership of a diff.SavedDiffKept counts a close by any connected Claude client as Claude's. Suppose a second client's closeAllDiffTabs or close_tab closes a diff that the user saved with :w, and the client that opened it died before it wrote the file. Then the accepted edits are lost, and the model does not check for it. Modeling this needs the closing client on the close actions, plus an owner-alive condition.
ClaudeCodeDiffClosed handlers during a bulk close.close_active_diffs takes a snapshot of the tab names, then closes them one by one. Each close fires ClaudeCodeDiffClosed synchronously. A user handler that accepts another diff from the snapshot gets that saved diff closed by the next loop step. This is the same kind of reentrancy as the ClaudeCodeDiffOpened finding (bug(diff): a ClaudeCodeDiffOpened handler that accepts or denies the diff leaves openDiff unanswered forever #325). It has not been replayed on real Neovim, so it is a candidate bug, not a confirmed one. Modeling it needs an assumption constant and an expected-fail config, the same way opened-handler works.
Activity
test(server): a new connection must not reuse an earlier client id
fix(server): number client ids so a new connection never reuses one
chore(skills): record verify-diff-lifecycle coverage after merging main
chore(skills): re-sync verify-diff-lifecycle with main (coder#343)
fix(terminal): start a new snacks terminal for an open during close (c…
fix(terminal): forget a native terminal adopted after a reload when i…
fix(diff): clean up the diff temp folder once and note the coder#349 …
fix(skills): handle an uncreatable or "-" relative VERIFY_OUT in vcn.…
fix(diff): keep accepted diffs through reentrant bulk closes and othe…