refactor(tui): extract _SlashWorker client + session db into tui_gateway modules (server.py god-file slice R1) - #79259
Conversation
…way modules (server.py god-file slice R1) Signed-off-by: andrexibiza <84248988+andrexibiza@users.noreply.github.com>
|
🔒 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. |
|
Pushed |
Summary
tui_gateway/server.py god-file slice R1: extract the
_SlashWorkersubprocess client + session-db cluster fromtui_gateway/server.py(13,908 lines) intotui_gateway/slash_worker_client.pyandtui_gateway/session_db.py. Part of the repo-wide large-file decomposition (tracker #78647).What changed and why
_SlashWorker+_SLASH_WORKER_TIMEOUT_S(window 158–162 + 326–459, golden shae71683bf…) →tui_gateway/slash_worker_client.py— zero forward deps,git_probe.pyextraction is the in-tree precedentcea6186d…, 12 members) →tui_gateway/session_db.py— 9/12 members have zero outside refs; the 2globalstate lines stay on server.py (test-pinned)server.pyre-exports all moved names identity-preserving (seam:server.X is module.X)Testing
tests/tui_gateway/: 391 passed, 4 failed — identical 4 proven at the pristine pin (timing flakes + Windows SIGPIPE)is-identicalCoordination / interlock
method_ctx.HandlerRegistryglobals-rebinding contractPart of #78647
Part of #78630