3.2 KiB
Gitea #2: change-realm lifecycle gap
Offline investigation, 2026-11-27. This is not a realm-switch implementation or a live reproduction.
The extracted 70334 characterselect/characterselectutil.lua:69-75 calls global C_RealmList.RequestChangeRealmList() after saving character order and clearing search. This global call does not use the lexical RealmListProvider introduced by ops/source_realm_ui.py in the realm-list file. However, the release review subsequently established that this is not the ordinary visible button: the Camelot override selects the SuperDistricts control, whose callback invokes ChangeSuperDistrict(nil) and StartSuperDistrictSelection(). A Lua 5.1 harness of the released files observed one such call and zero RequestChangeRealmList() calls. The normal connected picker falls back to native districts because Source rows are supplied only during pending discovery. The plain Realms control is conditional on the cheat-button visibility predicate. See the private codex/realm-change-release-20261127/report.md for extracted file digests and the released-template regression.
Even a correctly routed call cannot currently reselect a source realm:
compat/glue/source_realm_provider.lua:209returnsfalse, "account-realm-transition-unverified"unconditionally. Existingtests/source_realm_provider_test.pyandtests/source_realm_ui_test.pyexplicitly test that limitation.native/wine_wire_account.c:359-420discovers realms, admits one initial choice, prepares its transport, then enters the retain loop. There is no transition back to the chooser. Its close path at 445-446 closes both transport and authenticated login.gw_wire_account_ui_selectandgw_private_consume_source_realmboth require pending state 5, selected index -1 and no prepared transport. A connected/prepared state 2 must not simply be relabeled pending: the old channel and engine lease still belong to it.src/legacy_client.cpp:288-320can request another real realm list on the authenticated socket, butrealms()caches its first list andconfirm_realm_list()only confirms that original choice set. This does not implement post-world refresh/reselection.
A complete fix needs a coordinated native disconnect/lease retirement, authenticated account lifetime decision, fresh realm discovery and selection generation, new world transport admission, and glue routing. It must retain genuine endpoint eligibility and stale-generation checks. Removing only the Lua hold or the transport admission guards is not a fix.
Requested from Claude: an existing trace or a new live capture of native 70334 change-realm callback/disconnect/reconnect ordering, with account/auth lifetime. The offline code establishes the missing gateway lifecycle but does not establish the engine callback contract. Until that evidence arrives this item remains open; no runtime changes, client writes, credentials, or publication were performed.
Future host coverage should exercise two source realms, change after character select, stale old selection rejection, old-channel retirement, refreshed list changes, cancellation, failed rediscovery, and exactly one admission of the newly selected transport. Initial-choice tests alone cannot qualify this feature.