Skip to content

fix(game): make the start button work when the lobby is full - #116

Merged
d-Rickyy-b merged 1 commit into
masterfrom
claude/project-thread-gbpez2
Oct 8, 2026
Merged

d-Rickyy-b merged 1 commit into
masterfrom
claude/project-thread-gbpez2

Conversation

@d-Rickyy-b

Copy link
Copy Markdown
Owner

Requested by Rico · project thread

Before: when the fifth player joined a group game, the Join/Start keyboard was replaced with a single Start button that did nothing when pressed. A full lobby could never start.

After: the Start button on a full lobby starts the game, the same way the Start button on the join keyboard does.

How: get_start_keyboard used callback_data="start", but start_callback_handler only matches ^start_[0-9]{7}$. Even if it had matched, is_button_affiliated needs the game id in the data. get_start_keyboard now takes the game id and emits start_<game_id>, and both call sites in join_callback pass game.id. New tests check that the start buttons on both keyboards match the start handler's pattern.

🤖 Generated with Claude Code

https://claude.ai/code/session_01KouGQtM6VBedfBdNr8WFX5


Generated by Claude Code

When the fifth player joined, the join keyboard was replaced by a start
button with callback data "start". The start callback handler only
matches "start_<game_id>", so pressing it did nothing and a full lobby
could never be started.

get_start_keyboard now takes the game id and uses "start_<game_id>",
like the start button of the join keyboard.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KouGQtM6VBedfBdNr8WFX5
@d-Rickyy-b d-Rickyy-b self-assigned this Oct 8, 2026
@coveralls

Copy link
Copy Markdown

Coverage Status

coverage: 67.99% (+0.6%) from 67.395% — claude/project-thread-gbpez2 into master

1 similar comment
@coveralls

Copy link
Copy Markdown

Coverage Status

coverage: 67.99% (+0.6%) from 67.395% — claude/project-thread-gbpez2 into master

@d-Rickyy-b
d-Rickyy-b merged commit 442c065 into master Oct 8, 2026
4 checks passed
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.

3 participants