[GH-ISSUE #4251] Lecter GUI stays open after pressing 'Take Book' #1246

Closed
opened 2026-11-02 15:45:23 +07:00 by bsakaguchi · 3 comments
Owner

Originally created by @ScrapDrawer22 on GitHub (Oct 30, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/4251

The GUI stays open after pressing 'Take Book' inside of the lectern GUI.

Version: Nightly 2026-10-30 (33d417f) (latest)

Originally created by @ScrapDrawer22 on GitHub (Oct 30, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/4251 The GUI stays open after pressing 'Take Book' inside of the lectern GUI. Version: Nightly 2026-10-30 (33d417f) (latest)
Author
Owner

@DenisHumen commented on GitHub (Oct 30, 2026):

🤖 Agent: comment by DenisHumen's AI agent (Claude Code, Opus 5.5), not by DenisHumen personally. Withdrawn: #4263 was opened for this in the meantime, so I'm not opening a duplicate PR.

One finding that may help with the review. In single player the game runs through the integrated server (remote is set), so follow_lectern doesn't close the screen there. The screen stays open because Game::pauses_game counts every book screen as a pause screen (|| self.book.is_some()). In vanilla 26.3, LecternScreen.isPauseScreen() returns false (BookViewScreen and BookEditScreen keep the default, true). So while a lectern is open in single player, the world is paused. The server's lan_lecterns_tick (stillValid) never runs after Take Book, and it never sends the ContainerClose. I confirmed this with horizon-ctl: there was one lan_lecterns_tick call while the lectern was open, the lectern changed to has_book=false, and the screen stayed book. When pauses_game skipped BookScreen::View { lectern: Some(_), .. }, the screen closed by itself after Take Book. Even with #4263, a single-player world still pauses while a lectern is read, which differs from vanilla.

<!-- gh-comment-id:6517594990 --> @DenisHumen commented on GitHub (Oct 30, 2026): 🤖 Agent: comment by DenisHumen's AI agent (Claude Code, Opus 5.5), not by DenisHumen personally. **Withdrawn:** #4263 was opened for this in the meantime, so I'm not opening a duplicate PR. One finding that may help with the review. In single player the game runs through the integrated server (`remote` is set), so `follow_lectern` doesn't close the screen there. The screen stays open because `Game::pauses_game` counts every book screen as a pause screen (`|| self.book.is_some()`). In vanilla 26.3, `LecternScreen.isPauseScreen()` returns false (`BookViewScreen` and `BookEditScreen` keep the default, true). So while a lectern is open in single player, the world is paused. The server's `lan_lecterns_tick` (`stillValid`) never runs after Take Book, and it never sends the `ContainerClose`. I confirmed this with `horizon-ctl`: there was one `lan_lecterns_tick` call while the lectern was open, the lectern changed to `has_book=false`, and the screen stayed `book`. When `pauses_game` skipped `BookScreen::View { lectern: Some(_), .. }`, the screen closed by itself after Take Book. Even with #4263, a single-player world still pauses while a lectern is read, which differs from vanilla.
Author
Owner

@DUzzL commented on GitHub (Oct 30, 2026):

🤖 Agent: /claim

<!-- gh-comment-id:6517707304 --> @DUzzL commented on GitHub (Oct 30, 2026): 🤖 Agent: /claim
Author
Owner

@github-actions[bot] commented on GitHub (Oct 30, 2026):

🤖 Claims: refused, You hold 5 open issues: finish or /unclaim one first. (asked by @DUzzL)

<!-- gh-comment-id:6517709959 --> @github-actions[bot] commented on GitHub (Oct 30, 2026): 🤖 Claims: refused, You hold 5 open issues: finish or `/unclaim` one first. (asked by @DUzzL)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#1246
No description provided.