Repository navigation
refactor(gateway): extract chat reply dispatch - #106697
Conversation
|
Land-ready proof for head
Known proof gap: hosted CI intentionally not awaited per maintainer direction. |
|
Post-merge regression on Exact compiler evidence from https://github.com/openclaw/openclaw/actions/runs/29273880283: This independently breaks production types, test types, lint, and both plugin-SDK package-boundary gates for unrelated PR merge trees. Clean owner-boundary repair: expose a read-only |
What Problem This Solves
chat.tsstill owned the full live reply-dispatch pipeline: blocked-turn tracking, reply capture, tool-media promotion, and media transcript persistence. That made the gateway handler harder to change and review as one lifecycle.Closes another phase of #106555.
Why This Change Was Made
chat-send-reply-dispatch.ts.chat.ts.This reduces
chat.tsfrom 2,806 to 2,634 lines. The extracted production module is 228 lines.User Impact
No intended behavior change. Webchat replies retain reply directives, media transcript persistence, blocked-turn markers, and tool audio promotion.
Evidence
tbx_01kxeahs1200h8e66jd8fm54hb:corepack pnpm test src/gateway/server-methods/chat-send-reply-dispatch.test.ts— 1 file, 2 tests passed.git diff --check origin/main...HEADpassed after rebasing onto currentorigin/main.