strat-gameplay-webapp/backend/app/websocket
Cal Corum 450ef830dc CLAUDE: Fix batter not advancing after plays
Root cause: WebSocket handler had stale state reference after
resolve_manual_play() completed. The handler's state object still had
the old batter index, and calling state_manager.update_state()
overwrote the game engine's updated state.

Fix: Re-fetch state from state_manager AFTER resolve_manual_play()
returns, ensuring we get the state with the advanced batter index.

Also improved logging in _prepare_next_play() to show batting_order
for easier debugging.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-28 22:38:10 -06:00
..
__init__.py CLAUDE: Complete Phase 1 backend infrastructure setup 2025-10-21 19:46:16 -05:00
CLAUDE.md CLAUDE: Refactor backend CLAUDE.md files for conciseness 2025-11-19 16:10:08 -06:00
connection_manager.py CLAUDE: Enhance WebSocket handlers with comprehensive test coverage 2025-11-28 12:08:43 -06:00
handlers.py CLAUDE: Fix batter not advancing after plays 2025-11-28 22:38:10 -06:00
MANUAL_VS_AUTO_MODE.md CLAUDE: Phase 3E-Final - Redis Caching & X-Check WebSocket Integration 2025-11-03 22:46:59 -06:00
X_CHECK_FRONTEND_GUIDE.md CLAUDE: Phase 3E-Final - Redis Caching & X-Check WebSocket Integration 2025-11-03 22:46:59 -06:00