Skip to content

Conversation

@onebeastchris
Copy link
Member

@onebeastchris onebeastchris commented Feb 5, 2026

With this change, all forms are cleared on Geyser's end when they're closed. This ensures that forms aren't accidentally re-sent when a new form is send, since that calls FormCache#resendAllForms()

Copilot AI review requested due to automatic review settings February 5, 2026 19:04
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR attempts to fix a race condition where forms that should have been closed were being re-sent through resendAllForms(). The fix changes the closeForms() method to directly handle unsent forms by calling their response handlers with an empty string instead of sending them to the client and immediately closing them.

Changes:

  • Reorganized imports alphabetically
  • Added Iterator import for safe map modification
  • Modified closeForms() to process unsent forms locally instead of sending them to the client

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Tim203
Copy link
Member

Tim203 commented Feb 6, 2026

I'm personally never really a fan of calling clear, because of that I liked your initial design of using an iterator better. Other than that the fix looks good.

Copilot AI review requested due to automatic review settings February 7, 2026 14:24
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copilot AI review requested due to automatic review settings February 7, 2026 14:40
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@onebeastchris onebeastchris merged commit 15a7df7 into GeyserMC:master Feb 7, 2026
2 checks passed
@onebeastchris onebeastchris deleted the fix/form-closing branch February 7, 2026 19:05
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