mirror of
https://github.com/storytold/wordcraft.git
synced 2026-10-29 12:57:09 -06:00
new_draft_restarts_restores_unsaved_and_explicitly_discards failed in a workspace run: the reopened session found no recovery record, because a process another test was starting held the record's lock for a moment (a forked child shares it until exec) and scan() skips locked records. The same can happen to a user when the app starts a helper process. lock() now tries again up to ten times, 10 ms apart, before treating the record as owned by a live instance. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>