Two-tier inactivity: mutual idle blocks force-concede at 10 min
Tier 1 (5 min, unchanged): - Active player: game.inactive_warning — "you may be forfeited" - Waiting player: game.opponent_inactive — "Accept Forfeit / Wait" Tier 2 (10 min — mutual idle): - If the game is still stalled after 10 min the waiting player also hasn't claimed forfeit, so both are treated as mutually idle - Sends game.both_idle_warning to BOTH players - Client closes any open tier-1 dialogs and shows "Wait" only — no concede or force-concede available - Prevents the tactic of both players going idle to pressure the other into conceding Monitor service now prunes notified sets on each poll so sessions that become active again can be re-notified if they stall again. Generated with [Claude Code](https://claude.ai/code) via [Happy](https://happy.engineering) Co-Authored-By: Claude <noreply@anthropic.com> Co-Authored-By: Happy <yesreply@happy.engineering>
This commit is contained in:
@@ -326,6 +326,13 @@ public sealed record GameInactiveWarningPush(Guid SessionId);
|
||||
/// </summary>
|
||||
public sealed record GameOpponentInactivePush(Guid SessionId);
|
||||
|
||||
/// <summary>
|
||||
/// Pushed to BOTH players when neither has acted for 10 minutes (mutual idle).
|
||||
/// The client must show only a "Wait" option — no concede or force-concede.
|
||||
/// Replaces any open inactive dialog on the client.
|
||||
/// </summary>
|
||||
public sealed record GameBothIdlePush(Guid SessionId);
|
||||
|
||||
/// <summary>
|
||||
/// Pushed to both players when a custom lobby is full and a GameSession has been created.
|
||||
/// Players should navigate to the game screen and send game.ready.
|
||||
|
||||
Reference in New Issue
Block a user