Skip to content

Fix bug with server Host/moderation UI where configured settings reset every 2m#77

Open
Blakenator wants to merge 1 commit into
ArmchairDevelopers:ver/beta10from
Blakenator:fix/host-refresh-reset-bug
Open

Fix bug with server Host/moderation UI where configured settings reset every 2m#77
Blakenator wants to merge 1 commit into
ArmchairDevelopers:ver/beta10from
Blakenator:fix/host-refresh-reset-bug

Conversation

@Blakenator

@Blakenator Blakenator commented Jul 24, 2026

Copy link
Copy Markdown

Problem

When hosting a server, the window periodically refreshes (roughly every 2 minutes). When this happens, it reloads the entire hosting/moderation UI twice (first time back to the server list page, second back to the current server) and on the second load all of the server settings.

Replication steps

  1. create a new server
  2. Start the game
  3. Configure bot settings, difficulty, etc (using the IOI mod) to be different from the default
  4. Wait ~2m
  5. Observe the double launcher UI reload and the settings reset back to the default values
KYBER.Launcher.2026-07-23.21-57-00.mp4
Debug logs

NFO - [client] - Updating RTM presence to 'null (1/4)'
INFO - [server_host] - Detected hosting status (17d282045b8d65cf5755b5310b6a399a)
INFO - [moderation_cubit] - Loading server 17d282045b8d65cf5755b5310b6a399a
INFO - [moderation_cubit] - Subscribing to server events
INFO - [moderation_cubit] - Fetching moderators
INFO - [moderation_cubit] - Fetching punishments
INFO - [client] - Updating RTM presence to 'null (1/4)'
--- this is where the configuration resets happen, requiring the next 2 lines to fix the UI state
INFO - [moderation_cubit] - Sending command: AutoPlayers.ForceFillGameplayBotsTeam2 22
INFO - [moderation_cubit] - Sending command: AutoPlayers.ForceFillGameplayBotsTeam1 9

The fix

  • Double check the hosting state before returning to the server list screen, only return fully if not playing or hosting

Testing

  • original bug
    • Replicated the original error on my machine across multiple hosting sessions
  • fix
    • Verified after multiple full sessions, no resets were observed
    • Verified after closing sessions, the redirect still functions correctly
    • Verified that when sitting at the host server browser screen it still periodically refreshes

@Blakenator
Blakenator requested a review from 7reax as a code owner July 24, 2026 05:20
@Blakenator
Blakenator force-pushed the fix/host-refresh-reset-bug branch from 01256b1 to dda6839 Compare July 24, 2026 05:24
@Blakenator Blakenator changed the title Fix bug server Host/moderation UI where configured settings reset every 2m Fix bug with server Host/moderation UI where configured settings reset every 2m Jul 24, 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.

1 participant