Support Linux refactoring checks

This commit is contained in:
Hermes Agent
2026-07-29 10:21:56 +00:00
parent 36f1056cf7
commit 902037f947
9 changed files with 253 additions and 100 deletions

View File

@@ -1,4 +1,5 @@
use super::*;
use std::sync::RwLock;
#[derive(Clone)]
pub(super) struct PreferenceDraft {
@@ -437,6 +438,7 @@ impl App {
return;
}
}
#[cfg(target_os = "macos")]
let dev_brain_changed = self.config.dev_brain != config.dev_brain;
#[cfg(target_os = "macos")]
let endpoint_changed = self.config.endpoint != config.endpoint;
@@ -447,6 +449,7 @@ impl App {
{
self._endpoint = None;
}
#[cfg(target_os = "macos")]
let pending_endpoint =
if config.endpoint.enabled && (endpoint_changed || self._endpoint.is_none()) {
let Some(generation) = &self.generation_service else {