Skip to content

Commit f7b1672

Browse files
Hank076Hank
andauthored
fix(settings): restore missing large PR handling config for pr_description (#2234)
* fix(settings): restore missing large PR handling config for pr_description The `enable_large_pr_handling`, `max_ai_calls`, and `async_ai_calls` keys were removed from the `[pr_description]` section in `settings/configuration.toml`, but `pr_description.py` still accesses `get_settings().pr_description.enable_large_pr_handling` at runtime. When the key is absent, an exception is raised inside `_prepare_prediction()` before `get_pr_diff` is even called. `retry_with_fallback_models()` catches it silently and logs "Failed to generate prediction", causing all configured models to exhaust in milliseconds with no actual API call ever made. Fixes #2230 * fix(settings): restore inline_file_summary config for pr_description `inline_file_summary` was missing from the `[pr_description]` section in `settings/configuration.toml`. `pr_description.py:130` accesses `get_settings().pr_description.inline_file_summary` at runtime, and the missing key causes an exception that silently fails the describe command. Fixes #2230 * fix(settings): remove Pro-only label from large PR handling config --------- Co-authored-by: Hank <pupu721@gmail.com>
1 parent ff82797 commit f7b1672

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pr_agent/settings/configuration.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,10 +107,14 @@ publish_description_as_comment_persistent=true
107107
enable_semantic_files_types=true
108108
collapsible_file_list='adaptive' # true, false, 'adaptive'
109109
collapsible_file_list_threshold=6
110+
inline_file_summary=false # false, true, 'table'
110111
# markers
111112
use_description_markers=false
112113
include_generated_by_header=true
113114
#custom_labels = ['Bug fix', 'Tests', 'Bug fix with tests', 'Enhancement', 'Documentation', 'Other']
115+
enable_large_pr_handling=true
116+
max_ai_calls=4
117+
async_ai_calls=true
114118

115119
[pr_questions] # /ask #
116120
enable_help_text=false

0 commit comments

Comments
 (0)