refactor(tui): extract change watcher into tui_gateway/change_watcher (server.py god-file slice R2) - #79260
Open
andrexibiza wants to merge 3 commits into
Open
Conversation
… (server.py god-file slice R2) Signed-off-by: andrexibiza <84248988+andrexibiza@users.noreply.github.com>
Contributor
Author
|
🔒 This shard is part of the tui_gateway/server.py KILL LOCK — the permanent record of the 13,908-line whole, the mess it caused (#60654 WS-frame stalls/frozen desktop, #60800 cold-start stalls, #33503 shell injection, #76285 board-slug validation, #76701 SessionDB abandonment, FIPS crashes), every shard in the wave, and every open fixer PR still fighting the surface (#72370 #76366 #67628 #58339 #77391 #66874 #77745 #72231 #62598 #33503 #74408 #74350 #65192 #77860 #76298 #78036 #74701 #72295 #73800 #76131 #68468 #51596 #53373 #76701 #70226). Lock: posted on #78630 · Indexed by the Kill All Gods meta-issue #78647. |
This was referenced Aug 5, 2026
Signed-off-by: Andrex Ibiza, MBA <84248988+andrexibiza@users.noreply.github.com>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
tui_gateway/server.py god-file slice R2: extract the change-watcher cluster from
tui_gateway/server.pyintotui_gateway/change_watcher.py. Part of the repo-wide large-file decomposition (tracker #78647).What changed and why
33fff84c…, 13 moved names incl.resolve_skin,_ensure_skin_watcher) →tui_gateway/change_watcher.pyserver.pyre-exports all 13 identity-preserving; import placed before_CHANGE_WATCHES(which references moved sig functions) — no NameError ordering trapchange_watcher.pyimportstui_gateway.serverat the END of the module (anti-deadlock placement), proven bytest_import_order_cycle_permutation(change-watcher-first, server-first, entry/ws)_last_skin_sigdeliberately stays server-owned (test_protocol patches it; moved code reads/writesserver._last_skin_sigat call time)Testing
test_reexport_identity_per_moved_nameasserts identity per re-exported name33fff84cb07e…verified against parentCoordination / interlock
Part of #78647
Part of #78630