Skip to content

Fix: GRID multi-select screens (Augmenter event) cause infinite loop#27

Merged
xaved88 merged 1 commit into
xaved88:mainfrom
samdoidge:fix/grid-multi-select
Dec 30, 2025
Merged

Fix: GRID multi-select screens (Augmenter event) cause infinite loop#27
xaved88 merged 1 commit into
xaved88:mainfrom
samdoidge:fix/grid-multi-select

Conversation

@samdoidge
Copy link
Copy Markdown
Contributor

Problem: Events like Augmenter use GRID screens with for_transform=False and num_cards=2. The existing CommonTransformHandler only handles for_transform=True, causing DefaultChooseHandler to get stuck in an infinite loop selecting/deselecting the first card.

Solution: Added CommonGridSelectHandler that handles any GRID screen with num_cards > 0, properly tracks selected_cards count, and sends confirm when all cards are selected. Includes tests based on actual game log data from the Augmenter event.

…n\nProblem: Events like Augmenter use GRID screens with for_transform=False \nand num_cards=2. The existing CommonTransformHandler only handles \nfor_transform=True, causing DefaultChooseHandler to get stuck in an \ninfinite loop selecting/deselecting the first card.\n\nSolution: Added CommonGridSelectHandler that handles any GRID screen \nwith num_cards > 0, properly tracks selected_cards count, and sends \nconfirm when all cards are selected.\n\nIncludes tests based on actual game log data from the Augmenter event.
Copy link
Copy Markdown
Owner

@xaved88 xaved88 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, good fix!

@xaved88 xaved88 merged commit 7b47a87 into xaved88:main Dec 30, 2025
1 check 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.

2 participants