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> |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| CLAUDE.md | ||
| connection_manager.py | ||
| handlers.py | ||
| MANUAL_VS_AUTO_MODE.md | ||
| X_CHECK_FRONTEND_GUIDE.md | ||