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.
This commit is contained in:
kite 2026-06-25 20:07:07 +08:00 committed by GitHub
parent 344f981156
commit 034d512b15
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View file

@ -75,7 +75,7 @@
"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}"
}
],
"timeout": 60
"timeout": 180
},
"MAX_TOKENS": 58888,
"MAX_TOOL_REQUEST_TIMES": 60,

View file

@ -21,14 +21,14 @@
]
},
"REVIEW_FILTER_TASK": {
"timeout": 60,
"timeout": 180,
"messages": [
{ "role": "system", "prompt_file": "review_filter_task_system.md" },
{ "role": "user", "prompt_file": "review_filter_task_user.md" }
]
},
"RE_LOCATION_TASK": {
"timeout": 60,
"timeout": 180,
"messages": [
{ "role": "system", "prompt_file": "re_location_task_system.md" },
{ "role": "user", "prompt_file": "re_location_task_user.md" }