refactor(cache): drop the source half of the lost-identity check (ENG-1556)

relocateEnds stopped a bare-point drag when an end recorded without a
position had waited for its box and then turned ambiguous. For the
source that stop changed nothing: its point has no place on that look,
so the poll ends there with target-ambiguous either way. Nine sequences
with a hidden or offscreen source that gains a twin reach the removed
check on the old code and give the same outcome without it, and all 107
replay tests pass. The drop target half stays: with it removed too,
"stops when a hidden drop target gains a twin while the source is
absent" fails.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
michal-e2e
2026-11-29 21:11:17 +01:00
co-authored by Claude Fable 5.2
parent 3f857fb718
commit e4aebd0be1
+1 -1
View File
@@ -563,7 +563,7 @@ async function relocateEnds(
const waitingForDestination = from?.relocated.kind === 'failed' && to?.wait === true
&& places?.source(from.relocated) === true && !places.destination(to.relocated);
const wait = from?.relocated.kind === 'failed' ? from.wait || waitingForDestination : to?.wait === true;
if (lostIdentity(source, from) || lostIdentity(destination, to)
if (lostIdentity(destination, to)
|| guardSource(screen, from?.relocated, from === STILL_LOADING, wait)
|| guardDestination(screen, to?.relocated, to === STILL_LOADING, wait)) {
return { screen, ends: [undefined, undefined], refused: true };