refactor(G.3a): Place flips Idle before delegate; test mid-hold reset (#133)

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
Erik 2026-06-13 17:11:40 +02:00
parent 7947d7ad0a
commit aca4b4645a
2 changed files with 27 additions and 1 deletions

View file

@ -97,7 +97,9 @@ public sealed class TeleportArrivalController
private void Place(bool forced)
{
_place(_destPos, _destCell, forced);
// Flip to Idle BEFORE invoking the placement delegate so the machine
// reflects "done holding" even if the delegate were to re-enter Tick.
Phase = TeleportArrivalPhase.Idle;
_place(_destPos, _destCell, forced);
}
}