feat(battle-node): EchoHandler consumes Echo instead of relaying

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
gamer147
2026-06-03 18:03:19 -04:00
parent 506d286529
commit 6b580c622d
3 changed files with 11 additions and 4 deletions

View File

@@ -478,7 +478,7 @@ public class BattleSessionDispatchTests
}
[Test]
public void Pvp_Echo_from_A_in_BothAfterReady_forwards_to_B()
public void Pvp_Echo_from_A_in_BothAfterReady_is_consumed_not_relayed()
{
var (s, a, b) = NewPvpSession();
DriveToAfterReady(s, a);
@@ -486,8 +486,7 @@ public class BattleSessionDispatchTests
var routes = s.ComputeFrames(a, NewEnvelope(NetworkBattleUri.Echo));
Assert.That(routes.Count, Is.EqualTo(1));
Assert.That(routes[0].Target, Is.SameAs(b));
Assert.That(routes, Is.Empty, "Echo has no inbound handler on the client; relaying risks an echo storm.");
}
[Test]