Skip to content

fix: don't queue duplicate search conversations in value GUI - #452

Merged
tastybento merged 1 commit into
developfrom
fix/451-duplicate-search-conversations
Jul 29, 2026
Merged

fix: don't queue duplicate search conversations in value GUI#452
tastybento merged 1 commit into
developfrom
fix/451-duplicate-search-conversations

Conversation

@tastybento

Copy link
Copy Markdown
Member

Summary

Fixes #451.

Bukkit queues conversations per player, so every click on the value panel's search button began another 90-second conversation. If the first prompt wasn't visible (e.g. a chat-managing plugin like CMI swallowed it), players clicked the button repeatedly, stacking conversations that later replayed as alternating Conversation cancelled! / Please enter a search value spam with the GUI re-opening each time.

Fix

ConversationUtils.createStringInput now checks Player#isConversing() first. If a conversation is already pending, it closes the GUI and repeats the question (with the usual prefix) instead of queueing a second conversation — so the pending prompt still works and no spam accumulates.

Testing

  • New ConversationUtilsTest: verifies a conversation starts normally when none is pending, and that no second conversation is begun (question is re-sent instead) when one is already active.
  • Full suite passes (246 tests).

🤖 Generated with Claude Code

https://claude.ai/code/session_01NSvRYW3Rgh6Vgvx62QRYE1

Bukkit queues conversations per player, so every click on the value
panel's search button started another 90-second conversation. When the
player finally typed in chat (or the timeouts expired), the queued
conversations replayed one after another as alternating 'Conversation
cancelled!' / 'Please enter a search value' spam, with the GUI
re-opening each time.

If the player is already conversing, repeat the pending question
instead of beginning a new conversation.

Fixes #451

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NSvRYW3Rgh6Vgvx62QRYE1
@sonarqubecloud

Copy link
Copy Markdown

@tastybento
tastybento merged commit 76ce7af into develop Jul 29, 2026
3 checks passed
@tastybento
tastybento deleted the fix/451-duplicate-search-conversations branch July 29, 2026 15:31
@tastybento tastybento mentioned this pull request Jul 29, 2026
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.

chunkblock value search causing player confusion

1 participant