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
Follow-up from #4841: SSH targets create their branch during background materialization (worktree add -B), so create() cannot report createdBranch, and a failed delegated creation keeps that branch in the managed remote mirror. The ref is harmless because the next -B resets it. Add a materialization-outcome signal if the ref turns out to matter.
Generated with xum • Model: anthropic:claude-opus-5-5 • Thinking: high • Cost: $0.04
Problem
Two leftovers in workspace-creation rollback. The final check on #4840 (the fix for #4818) flagged both. Neither was introduced by that PR.
create()(abortUnsanitizedCreationwith nocheckoutargument) uses the default"delete"mode. That mode runsgit branch -d, which also deletes a merged branch that existed before the creation. The 🤖 fix: roll back create/fork/rename artifacts when the registration config write rejects #4745 registration-failure path and the 🤖 fix: create()/fork() returning Err after registration keep the registered row #4818 path useforce-delete-keep-branchwhencreatedBranch !== true. The sanitize path should follow the same rule.createMultiProject()was out of scope for 🤖 fix: create()/fork() returning Err after registration keep the registered row #4818, which coveredcreate()andfork()only. Check whether it hasErrexits after its registration write that keep the row. If so, roll them back the same way.Refs #4818, #4775
Generated with
xum• Model:anthropic:claude-opus-5-5• Thinking:high