fix(bot): IsComplete must not flag null MaxPlayers as missing (no-limit) (v3.9.7) #132

Closed
Toutsu wants to merge 0 commits from fix/issue-130-no-limit-complete into main
Owner

Merged via local no-ff fallback because the Gitea PR merge API returned HTTP 405. Main contains merge commit 2241568.

Merged via local no-ff fallback because the Gitea PR merge API returned HTTP 405. Main contains merge commit 2241568.
Toutsu added 1 commit 2026-06-09 13:17:14 +03:00
fix(bot): IsComplete must not flag null MaxPlayers as missing (no-limit)
PR Checks / test-and-build (pull_request) Successful in 12m33s
320ec18ab0
After 3.9.6 fixed long-polling, the bot finally reaches the final
' Создать' step. Users pressing '♾ Без лимита' on the Capacity step
get a valid payload where Single.MaxPlayers = null (the legitimate
no-limit choice from GameCreationWizard.ApplyCapacityChoice 'no_limit'),
but CreateSessionHandler.IsComplete then reports 'лимит мест' as
missing, blocking session creation.

This regression existed since 3.9.3 (when 'no_limit' was added) but
stayed invisible because 3.9.4 and 3.9.5 never reached SubmitDraft
(libgssapi-krb5 missing → long-polling hung). Once 3.9.6 restored
polling, the bug surfaced immediately.

Fix: drop the null-MaxPlayers check from IsComplete for Single type.
Null is a valid 'no limit' state and must pass through to BuildCommands
→ shared handler, which already accepts null MaxPlayers correctly.

Closes #131.

Bump version 3.9.6 -> 3.9.7
Toutsu added 1 commit 2026-06-09 13:35:40 +03:00
fix(bot): trim misleading comment in IsComplete
PR Checks / test-and-build (pull_request) Successful in 12m9s
37ed697696
The previous comment claimed a 0 MaxPlayers would also be blocked, but
the code never actually enforced that. The wizard's text-input path
already guarantees cap >= MinCapacity, so 0 is unreachable. Drop the
inaccurate half-sentence to keep the comment faithful to the code.
Toutsu closed this pull request 2026-06-09 13:36:26 +03:00
Some checks are pending
PR Checks / test-and-build (pull_request) Successful in 12m9s

Pull request closed

Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Toutsu/GmRelayBot#132