From fc2d858222430d9e79bda1ba4b45fed1b87223f0 Mon Sep 17 00:00:00 2001 From: wizardchen Date: Mon, 18 May 2026 17:55:33 +0800 Subject: [PATCH] fix(session): update AgentQA to conditionally disable title based on request Modified the AgentQA function to conditionally pass the title disable flag to the executeQA method, enhancing flexibility in session handling. This change improves the behavior of the QA execution based on user requests. --- internal/handler/session/qa.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/handler/session/qa.go b/internal/handler/session/qa.go index 6bcb0437..0cac5c23 100644 --- a/internal/handler/session/qa.go +++ b/internal/handler/session/qa.go @@ -590,7 +590,7 @@ func (h *Handler) AgentQA(c *gin.Context) { h.executeQA(reqCtx, qaModeAgent, true) } else { logger.Infof(reqCtx.ctx, "Agent mode disabled, delegating to normal mode for session: %s", reqCtx.sessionID) - h.executeQA(reqCtx, qaModeNormal, false) + h.executeQA(reqCtx, qaModeNormal, !request.DisableTitle) } }