Repository navigation
Conversation
Undo deletes a user whose create was cut off when it finds it by the run's marker, and writes the delete to its own run. `runs <id>` read only the import's lines, so it kept listing that user under "Not confirmed (Clerk may have created them; a continue checks)" after the undo. It now leaves out any user an undo of the run deleted, in the human output and in `unconfirmed` in --json. A user no undo deleted stays listed, since Clerk may still hold it. Fixes AIE-2014 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
🦋 Changeset detectedLatest commit: 64b4d75 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|

Summary
Undoing an interrupted import deletes the user whose create had no answer: undo finds it by the run's marker. Afterwards,
clerk migrate runs <id>for the import still listed that user under "Not confirmed (Clerk may have created them; a continue checks)". The user was gone, and no continue could run after the undo.Changes
runs <id>reads thedeletedlines of every undo of the run, and leaves the users they deleted out of "Not confirmed" and out ofunconfirmedin--json.external_idwithout this run's marker, so it left the user in Clerk. Hiding the whole list for any undone run would have dropped that user too.Resultline (1 created, 1 not confirmed) is unchanged. It records what the import did, like the run's other counts.Testing
creatingusers, one of which the undo deleted. Only the other is listed, in human output and--json. Checked that it fails without the fix.bun test src/ --parallelin packages/cli-core: 6599 pass. Typecheck, oxfmt, and oxlint are clean.References
🤖 Generated with Claude Code