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()