Commit f7b1672
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
1 file changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
| 110 | + | |
110 | 111 | | |
111 | 112 | | |
112 | 113 | | |
113 | 114 | | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
114 | 118 | | |
115 | 119 | | |
116 | 120 | | |
| |||
0 commit comments