From 63583712a89953ea33ee0e5cba7bf2a06a7b460a Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Mon, 20 Apr 2026 06:36:07 +0800 Subject: [PATCH] fix: fallback agent payload source to numeric value Keep Lingma chat/ask payload source as numeric 1 for agent mode A/B validation against remote upstream timeout behavior. Co-Authored-By: Claude Opus 4.7 --- app/lingma_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/lingma_client.py b/app/lingma_client.py index 0e59011..571de69 100644 --- a/app/lingma_client.py +++ b/app/lingma_client.py @@ -904,7 +904,7 @@ class LingmaGatewayClient: "chatTask": "chat" if ask_mode == "agent" else "FREE_INPUT", "mode": ask_mode, "stream": True, - "source": "vscode" if ask_mode == "agent" else 1, + "source": 1, "isReply": is_reply, "taskDefinitionType": "system", "content": prompt,