You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Make ending a character hard to do by accident - #164
Reviewed: Fable 5.2 (medium) APPROVE at 7b8560c, 3 minor findings; 2 fixed in daa3be5 (equal button widths, dead-character check before the delay), 1 left (the 1.5 s counts from when the server sends the page, inherent)
Second opinion: CodeRabbit APPROVED at 7b8560c, no findings (approval auto-dismissed by the minor-fix push)
Dev-tested: PASS at daa3be5 (CI jar on TFMCDev01, bot ~/end-char-test/test.js 15/15: chest Confirm shows "Kill ?", selection layout, clues page, [Back][End for good], repeat click lands on Back, instant End for good asks again, End after the delay works; no new RPCharacters errors)
Local tests: changed classes pass at daa3be5, 0 missed lines in changed classes (Windows-only fsync failures in persistence tests, unrelated)
Why
On 2026-11-20 a player on Main lost their character while checking their clues in the character selection room after their game froze. The server recorded the selection screen's two-step "End character" (cause: CHARACTER_MENU). In that screen:
"Clues" (hover only, clicking did nothing) sat right next to the clickable "End character" link on one line.
Both confirm steps put the kill button in the same spot ("End character", then "End for good"), so a double click, or clicks a frozen client delivers in a burst, went straight through.
The old Character Info chest menu had a smaller version: Kill and Switch both open the same "Confirm Action" screen with nothing saying which action is being confirmed.
Changes
Selection screen (CharacterSelectView):
"End character" moves off the Background • Traits • Clues line to its own line at the bottom of the screen, below Memorials.
"Clues" is now a link that opens a clues page (Back returns), like Background. The hover still shows the clues.
The final step shows [Back] [End for good]: Back takes the spot End character had, so a repeated click steps back.
End for good ignores clicks for 1.5 s after the final page opens and asks again ("Take a moment. Press End for good again to confirm.").
Old chest menu (InventoryManager.confirmView):
The Confirm Action screen shows an item between Confirm and Cancel: "Kill ?" (axe), "Switch to ?" (emerald) or "Revive ?" (totem). Title and slots are unchanged, so the click handling is untouched.
No change to when a character can be ended, nor to saved data.
Tests
CharacterSelectViewTest: new layout, clues page, swapped buttons, the 1.5 s guard (early click asks again, then confirms), and a double click on the first step's spot landing on Back.
InventoryManagerViewsTest / PlayerManagerEventsTest: confirm subject for each action, colour-stripped and missing names.
Selection screen: End character moves off the Background/Traits/Clues line
to its own line at the bottom; Clues opens its own page. The final step puts
Back where End character was and ignores End for good for 1.5 s after it
opens, so a double click or clicks a frozen client sends at once can't run
through both steps.
Old Character Info menu: the Confirm Action screen now shows what Confirm
does and to whom (Kill/Switch to/Revive <name>?).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This repository does not receive automatic reviews because it has fewer than 10 stars.
Run configuration
Source mode: Auto
Repository: Unavailable
Branch: Unavailable
File: No configuration file from this repository applied
Commit: Unavailable
Layers: Organization UI
Review profile: CHILL
Plan: Advanced
Run ID: 1c3d250f-a96c-4ab6-b9d1-b26226f48aa0
No actionable comments were generated in the recent review.
Summary
Summary by CodeRabbit
New Features
Character details now show clues on a dedicated page, with the option to open it separately from the character’s other information.
Confirmation screens for ending, switching, or reviving a character now include action-specific prompts and character details.
Bug Fixes
The option to end a character is displayed separately from character details, and ending is blocked briefly after the final confirmation page opens.
Character selection now has a dedicated clues page, separates the end-character link from card extras, and delays final ending confirmation by 1,500 ms. Kill, revive, and switch confirmation views now show a subject prompt based on the action type and character.
Changes: Character selection and ending
Layer / File(s)
Summary
Character card details and clues page src/main/java/net/tfminecraft/rpcharacters/body/CharacterSelectView.java, src/test/java/net/tfminecraft/rpcharacters/body/CharacterSelectViewTest.java
Character cards place the end-character link separately from extras. Clues open on a dedicated page, which returns to the roster if the character is missing or no longer alive. Tests cover the page, card layout, and empty extras.
The final confirmation records when it opens and rejects confirmation clicks made before 1,500 ms. The final page places Back before End for good. Tests cover early and boundary-time clicks, as well as existing ending outcomes.
Action-specific confirmation views
Layer / File(s)
Summary
Action-specific prompts and flow integration src/main/java/net/tfminecraft/rpcharacters/managers/InventoryManager.java, src/main/java/net/tfminecraft/rpcharacters/managers/PlayerManager.java, src/test/java/net/tfminecraft/rpcharacters/managers/InventoryManagerViewsTest.java, src/test/java/net/tfminecraft/rpcharacters/managers/PlayerManagerEventsTest.java
The confirmation view displays a prompt for the action type and character. Kill, revive, and switch flows pass that information to the view. Tests cover prompt text, character names, and flow arguments.
This change adds a delay and clearer prompts to make ending a character harder to do by accident. No concrete defect was found, and it appears safe to merge.
- [ ] Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.
Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
size:L100-499 effective changed lines (tests excluded in mixed PRs).
1 participant
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Status record
~/end-char-test/test.js15/15: chest Confirm shows "Kill ?", selection layout, clues page, [Back][End for good], repeat click lands on Back, instant End for good asks again, End after the delay works; no new RPCharacters errors)Why
On 2026-11-20 a player on Main lost their character while checking their clues in the character selection room after their game froze. The server recorded the selection screen's two-step "End character" (
cause: CHARACTER_MENU). In that screen:The old Character Info chest menu had a smaller version: Kill and Switch both open the same "Confirm Action" screen with nothing saying which action is being confirmed.
Changes
Selection screen (
CharacterSelectView):Background • Traits • Cluesline to its own line at the bottom of the screen, below Memorials.[Back] [End for good]: Back takes the spot End character had, so a repeated click steps back.Old chest menu (
InventoryManager.confirmView):No change to when a character can be ended, nor to saved data.
Tests
CharacterSelectViewTest: new layout, clues page, swapped buttons, the 1.5 s guard (early click asks again, then confirms), and a double click on the first step's spot landing on Back.InventoryManagerViewsTest/PlayerManagerEventsTest: confirm subject for each action, colour-stripped and missing names.🤖 Generated with Claude Code