Skip to content

Commit 034d512

Browse files
fix: increase REVIEW_FILTER_TASK and RE_LOCATION_TASK timeout from 60s to 180s (#208) (#218)
Slow local models often cannot complete these sub-tasks within the hardcoded 60-second limit, causing timeouts that the user-provided --timeout flag cannot override. Raise both to 180s in task_template.json and scan_template.json to give local models sufficient time.
1 parent 344f981 commit 034d512

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

internal/config/template/scan_template.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
"content": "Below is a unified diff and a review comment. Identify the minimal contiguous code range in the diff that the comment targets.\n\nRules:\n1. Copy the relevant lines VERBATIM from the diff — do not rewrite, reformat, or add anything.\n2. Strip leading diff markers (`+`, `-`, ` `) from each line before outputting.\n3. Include only the lines directly related to the issue — no surrounding context.\n4. If multiple disjoint locations apply, pick the single most relevant one.\n5. Output ONLY a fenced code block. No explanation, no commentary.\n\n**Diff:**\n```diff\n{diff}```\n\n**Original code snippet (failed to match):**\n```\n{existing_code}\n```\n\n**Review comment:**\n{suggestion_content}"
7676
}
7777
],
78-
"timeout": 60
78+
"timeout": 180
7979
},
8080
"MAX_TOKENS": 58888,
8181
"MAX_TOOL_REQUEST_TIMES": 60,

internal/config/template/task_template.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@
2121
]
2222
},
2323
"REVIEW_FILTER_TASK": {
24-
"timeout": 60,
24+
"timeout": 180,
2525
"messages": [
2626
{ "role": "system", "prompt_file": "review_filter_task_system.md" },
2727
{ "role": "user", "prompt_file": "review_filter_task_user.md" }
2828
]
2929
},
3030
"RE_LOCATION_TASK": {
31-
"timeout": 60,
31+
"timeout": 180,
3232
"messages": [
3333
{ "role": "system", "prompt_file": "re_location_task_system.md" },
3434
{ "role": "user", "prompt_file": "re_location_task_user.md" }

0 commit comments

Comments
 (0)