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.
This commit is contained in:
wizardchen
2026-05-18 17:55:33 +08:00
committed by lyingbug
parent 1506c604e1
commit fc2d858222
+1 -1
View File
@@ -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)
}
}