feat(copilot): align thread message payloads

This commit is contained in:
2026-06-05 12:44:18 +08:00
parent afccb5f9ae
commit fb1c739589
9 changed files with 595 additions and 635 deletions
@@ -74,7 +74,7 @@ func (h *SSEStreamHandler) StreamCopilotMessage(c *gin.Context) {
c.Header("X-Accel-Buffering", "no") // disable nginx buffering
// Get thread for context
thread, err := h.copilotSvc.GetThread(c.Request.Context(), uint(threadID))
thread, err := h.copilotSvc.GetThreadByID(c.Request.Context(), uint(threadID))
if err != nil {
applogger.L().Errorf("SSE GetThread: %v", err)
writeSSEMessage(c, "error", `{"error": "thread not found"}`)