Fix auto-review permission profile override (#23956)

## Summary
The auto-review runtime sync path was assigning a raw
`PermissionProfile` into `runtime_permission_profile_override`, whose
field now expects `RuntimePermissionProfileOverride`. That broke the TUI
Bazel build.

This changes the assignment to store
`RuntimePermissionProfileOverride::from_config(&self.config)`, matching
the other runtime override paths and preserving the active profile and
network metadata with the permission profile.
This commit is contained in:
Eric Traut
2026-05-21 16:52:36 -07:00
committed by GitHub
parent 5381240f57
commit 5a6e905994
+2 -1
View File
@@ -910,7 +910,8 @@ impl App {
return;
}
self.runtime_permission_profile_override = Some(permission_profile);
self.runtime_permission_profile_override =
Some(RuntimePermissionProfileOverride::from_config(&self.config));
self.sync_active_thread_permission_settings_to_cached_session()
.await;