Skip to content

fix: stop duplicate game_state publishes from move/skip handlers#131

Merged
rustwizard merged 1 commit into
masterfrom
fix/dedupe-game-state
Jun 15, 2026
Merged

fix: stop duplicate game_state publishes from move/skip handlers#131
rustwizard merged 1 commit into
masterfrom
fix/dedupe-game-state

Conversation

@rustwizard

Copy link
Copy Markdown
Owner

MoveGame and SkipGame published a guessed game_state, duplicating gamecoord's authoritative publish on NotifyTurnStart and risking FSM desync. Drop both handler publishes (and the orphaned buildGameState); gamecoord is the single source of truth. MoveGame keeps its synchronous response with an optimistic current_turn_uid hint; SkipGame returns 204.

MoveGame and SkipGame published a guessed game_state, duplicating gamecoord's
authoritative publish on NotifyTurnStart and risking FSM desync. Drop both
handler publishes (and the orphaned buildGameState); gamecoord is the single
source of truth. MoveGame keeps its synchronous response with an optimistic
current_turn_uid hint; SkipGame returns 204.
@rustwizard rustwizard self-assigned this Jun 14, 2026
@rustwizard rustwizard merged commit 7ceb48b into master Jun 15, 2026
2 checks passed
@rustwizard rustwizard deleted the fix/dedupe-game-state branch June 15, 2026 14:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant