fix: show actual bot names on watch page instead of Black/White fallbacks #15
Reference in New Issue
Block a user
Delete Branch "fix-watch-page"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The gameState stream event does not carry player names, so snapshot.white/black
were always undefined and the UI fell back to the literal strings "Black" and
"White". Fix by fetching the full game object (GET /api/tournament/{id}/game/{gameId})
on page load, which includes BotRef with real names, and storing them in
dedicated whiteName/blackName fields.
Co-Authored-By: Claude Sonnet 4.6 noreply@anthropic.com
The gameState stream event does not carry player names, so snapshot.white/black were always undefined and the UI fell back to the literal strings "Black" and "White". Fix by fetching the full game object (GET /api/tournament/{id}/game/{gameId}) on page load, which includes BotRef with real names, and storing them in dedicated whiteName/blackName fields. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>