From c60d2fdfcd0edbda378c3c242211c8b37c6999b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=85=AC=E6=98=8E?= <83812544+Ed1s0nZ@users.noreply.github.com> Date: Tue, 25 Nov 2025 21:01:48 +0800 Subject: [PATCH] Update agent.go --- internal/handler/agent.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/handler/agent.go b/internal/handler/agent.go index ddb843f7..939311f7 100644 --- a/internal/handler/agent.go +++ b/internal/handler/agent.go @@ -285,7 +285,7 @@ func (h *AgentHandler) AgentLoopStream(c *gin.Context) { // 创建一个独立的上下文用于任务执行,不随HTTP请求取消 // 这样即使客户端断开连接(如刷新页面),任务也能继续执行 baseCtx, cancelWithCause := context.WithCancelCause(context.Background()) - taskCtx, timeoutCancel := context.WithTimeout(baseCtx, 30*time.Minute) + taskCtx, timeoutCancel := context.WithTimeout(baseCtx, 600*time.Minute) defer timeoutCancel() defer cancelWithCause(nil)