agent: Add the single_file_review setting to the UI (#29859)

Release Notes:

- agent: Add the `single_file_review` setting to the UI
This commit is contained in:
Danilo Leal 2025-05-03 21:01:44 -03:00 committed by GitHub
parent 9c11d24887
commit 425f32e068
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 88 additions and 36 deletions

View file

@ -433,6 +433,14 @@ impl AssistantSettingsContent {
.ok();
}
pub fn set_single_file_review(&mut self, allow: bool) {
self.v2_setting(|setting| {
setting.single_file_review = Some(allow);
Ok(())
})
.ok();
}
pub fn set_profile(&mut self, profile_id: AgentProfileId) {
self.v2_setting(|setting| {
setting.default_profile = Some(profile_id);