Add toggle to automatically enable /improve --extended
#569
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Type
Enhancement
Description
_get_is_extended
inpr_agent/tools/pr_code_suggestions.py
to check if the extended mode should be enabled by the--extended
flag or automatically based on the configuration.pr_agent/tools/pr_code_suggestions.py
to prevent reducing the number of suggestions below a certain threshold.docs/IMPROVE.md
) to include the newauto_extended_mode
configuration parameter.auto_extended_mode
to the settings file (pr_agent/settings/configuration.toml
).PR changes walkthrough
1 files
pr_code_suggestions.py
pr_agent/tools/pr_code_suggestions.py
The PR introduces a new method
_get_is_extended
todetermine if the extended mode should be enabled either by
the
--extended
flag or automatically according to theconfiguration. It also modifies the logic for reducing the
number of suggestions, ensuring it doesn't go below a
certain threshold.
1 files
IMPROVE.md
docs/IMPROVE.md
The documentation is updated to include the new
auto_extended_mode
configuration parameter.1 files
configuration.toml
pr_agent/settings/configuration.toml
A new configuration parameter
auto_extended_mode
is addedto the settings file.
User description
Simpler version of #564 without all the extra thresholds, and keeping the default as
false
for backwards compatibility.