From ff2fe9a2445151ff5aab032450b27453cffc7a4c Mon Sep 17 00:00:00 2001 From: Fam Zheng Date: Tue, 7 Apr 2026 10:51:40 +0100 Subject: [PATCH] increase claude timeout from 10 to 60 minutes --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 724e1ed..52c167b 100644 --- a/main.py +++ b/main.py @@ -17,7 +17,7 @@ gitea = GiteaClient() ALLOWED_OWNER = "euphon" MAX_RESPONSE_LEN = 60000 -CLAUDE_TIMEOUT = 600 # 10 minutes +CLAUDE_TIMEOUT = 3600 # 60 minutes app = FastAPI() @@ -127,7 +127,7 @@ async def run_claude(prompt: str, cwd: str) -> str: except asyncio.TimeoutError: proc.kill() await proc.wait() - return "*Claude timed out after 10 minutes.*" + return f"*Claude timed out after {CLAUDE_TIMEOUT // 60} minutes.*" if proc.returncode != 0: err = stderr.decode().strip()