From e4b5841c9350a1a4db138f28d32ea266b1da4c0c Mon Sep 17 00:00:00 2001 From: imbytecat Date: Sun, 1 Mar 2026 06:43:59 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=8E=86=E5=8F=B2?= =?UTF-8?q?=E8=AE=B0=E5=BD=95=E4=B8=8D=E4=BF=9D=E5=AD=98=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98=EF=BC=88final=20=E6=B6=88=E6=81=AF=E7=B1=BB=E5=9E=8B?= =?UTF-8?q?=E8=A2=AB=E9=94=99=E8=AF=AF=E8=A6=86=E7=9B=96=E4=B8=BA=20partia?= =?UTF-8?q?l=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/ws/handler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/ws/handler.go b/internal/ws/handler.go index b0d707f..6580af4 100644 --- a/internal/ws/handler.go +++ b/internal/ws/handler.go @@ -75,7 +75,7 @@ func (h *Handler) handleConn(c *websocket.Conn) { accMu.Lock() accText += msg.Text // Send accumulated preview to phone - preview := ServerMsg{Type: MsgPartial, Text: accText} + preview := ServerMsg{Type: msg.Type, Text: accText} accMu.Unlock() if err := c.WriteMessage(websocket.TextMessage, preview.Bytes()); err != nil { log.Warn("ws write error", "err", err)