You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Story] Split the oversized server, collaboration and broadcast modules #39
area: extensionVS Code extension host (TypeScript): commands, launcher, servers, servicesstream: cleanup-refactorEpic #26: deep cleanup and restructuring of the extensiontfmAdds the issue to the TFM board automatically. Do not removeuser-storySub-issue of an epic ([Story] title prefix)
As a developer working on servers and collaboration, I want the 700–1,200-line server modules split by responsibility, so that each file has one reason to change and can be tested on its own.
Scope (ROADMAP W5-20..W5-36, with §E overrides)
HTTP/HTTPS lifecycle characterization, then an HTTPS base for TLS options and URL building (getConfig stays per class); one deadlock-rationale comment; dispose-before-close order in HttpServer.stop() untouched (W5-20..22).
attachWebSocketEndpoint and DEFAULT_ROOM_ID (W5-23).
collaborationRoomServer.ts (1,174 lines) in three steps: types and pure helpers, participant identity, room registry (W5-24..26).
screenBroadcastSignalingServer.ts (781): mediaFrame.ts, then relay policy (W5-27..28).
multiServerLauncher.ts (677): launcher characterization harness; factory, notifications outside runtime/, conflict dialog — this also removes the runtime → UI import found in the host-boundary analysis (W5-29..32).
handleServerActions.ts (815): harness, then format module and remote/participants module (catalogue keyed on action stays 1.3.0) (W5-33..36).
Acceptance criteria
Largest file 1,175 → ≤ 700 lines; files over 600 lines ≤ 4, each named and justified.
HTTPS pair identical lines 162 → ≤ 30.
Characterization transcripts identical before and after; both WebSocket suites green; manual F5 check of HTTPS server, collaboration room (join, avatar, kick) and screen share recorded.
Done in #54, merged into v1.2.1 with CI green on Linux, macOS and Windows. Largest server module 1,174 → 619 lines; HTTPS pair identical lines 156 → 26. W5-36 deferred to 1.3.0 per §E. Open point carried to #43: six files are still over 600 lines (five outside this story's scope), each justified in .claude/docs/v1.2.1/sessions/39-server-splits.md and to be re-measured after #34/#35/#40.
area: extensionVS Code extension host (TypeScript): commands, launcher, servers, servicesstream: cleanup-refactorEpic #26: deep cleanup and restructuring of the extensiontfmAdds the issue to the TFM board automatically. Do not removeuser-storySub-issue of an epic ([Story] title prefix)
Activity
refactor(collaboration): move the room's wire types and pure helpers out
refactor(collaboration): participant identity as pure functions
refactor(collaboration): the room registry as the handlers' narrow co…
refactor(collaboration): move the room's shared-state transitions out
test(broadcast): characterize frame limits and both thinning thresholds
refactor(broadcast): move the media frame format into mediaFrame.ts
refactor(broadcast): move the media relay policy into relayPolicy.ts
test(servers): characterize MultiServerLauncher.launchServer
refactor(servers): move the launcher's server factory into serverFact…
test(servers): characterize ServerActionHandlers
refactor(servers): move the launch notifications out of servers/runtime
refactor(servers): split the HTTPS-in-panel conflict into a decision …
refactor(active-servers): move the server dialog text into serverDeta…
refactor(active-servers): share the unknown-server guard as withServer
Merge remote-tracking branch 'origin/v1.2.1' into claude/project-thre…
chore(lint): lower the warning budget to the measured 598
docs(v1.2.1): session log for #39 (server splits)
Merge pull request #54 from Code-XR-Project/claude/project-thread-n2s…
aMonteSl commentedon Nov 25, 2026
Done in #54, merged into
v1.2.1with CI green on Linux, macOS and Windows. Largest server module 1,174 → 619 lines; HTTPS pair identical lines 156 → 26. W5-36 deferred to 1.3.0 per §E. Open point carried to #43: six files are still over 600 lines (five outside this story's scope), each justified in.claude/docs/v1.2.1/sessions/39-server-splits.mdand to be re-measured after #34/#35/#40.Generated by Claude Code
Merge remote-tracking branch 'origin/v1.2.1' into claude/project-thre…
refactor(active-servers): one remote-manager guard