The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
style(desktop): eslint --fix the stack-touched files and drop stray blank lines
kshitijk4poor1dd8afedb751
diff --git a/apps/desktop/src/api/config.ts b/apps/desktop/src/api/config.tsindex 7423e7ec151..76ec542a4db 100644--- a/apps/desktop/src/api/config.ts+++ b/apps/desktop/src/api/config.ts@@ -129,6 +129,7 @@ export async function getHermesConfigRecord({ includeDefaults = true }: { includeDefaults?: boolean } = {}): Promise<HermesConfigRecord> {const origin = capabilityScoped(profile ?? undefined)+const record = await window.hermesDesktop.api<HermesConfigRecord>({...origin,path: includeDefaults ? '/api/config' : '/api/config?include_defaults=false'diff --git a/apps/desktop/src/app/settings/appearance-settings.tsx b/apps/desktop/src/app/settings/appearance-settings.tsxindex 1d5414daa26..6db9550da93 100644--- a/apps/desktop/src/app/settings/appearance-settings.tsx+++ b/apps/desktop/src/app/settings/appearance-settings.tsx@@ -96,7 +96,6 @@ function ResumeLastSessionSetting() {// Sparse patch: PUT /api/config deep-merges, and echoing the cached// snapshot would overwrite keys other surfaces changed since it loaded.void saveHermesConfig(setNested({}, 'display.resume_last_session', on), writeScope)-.then(result => {if (!result.ok) {throw new Error(t.settings.config.autosaveFailed)diff --git a/apps/desktop/src/app/settings/config-settings.tsx b/apps/desktop/src/app/settings/config-settings.tsxindex c3ca2b32a99..acb7a5e371f 100644--- a/apps/desktop/src/app/settings/config-settings.tsx+++ b/apps/desktop/src/app/settings/config-settings.tsx@@ -103,12 +103,14 @@ function ConfigSettingsInner({// from — and saved back through — the shared config cache, so edits are visible// in the MCP/model surfaces and reopening the page doesn't reload-flash.const [config, setConfig] = useState<HermesConfigRecord | null>(null)+const {data: loadedConfig,isError: configLoadFailed,refetch: refetchConfig,writeScope} = useHermesConfigRecord(scopeProfile)+// Writes land on the same cache key the query above reads (base key when// following the active profile, suffixed when a scope override is set).const writeConfigCache = useMemo(() => hermesConfigCacheWriter(scopeProfile), [scopeProfile])diff --git a/apps/desktop/src/app/settings/model-settings.tsx b/apps/desktop/src/app/settings/model-settings.tsxindex 9a1cee2c1c4..65b0032cf0e 100644--- a/apps/desktop/src/app/settings/model-settings.tsx+++ b/apps/desktop/src/app/settings/model-settings.tsx@@ -593,7 +593,6 @@ export function ModelSettings({ onMainModelChanged, scopeProfile, subpage }: Modtry {await saveHermesConfig(setNested({}, key, value), writeScope ?? scopeProfile)-} catch (err) {setConfig(prev)notifyError(err, m.defaultsFailed)diff --git a/apps/desktop/src/app/settings/terminal-font-setting.tsx b/apps/desktop/src/app/settings/terminal-font-setting.tsxindex c981bf68ef1..fc1f593ffe7 100644--- a/apps/desktop/src/app/settings/terminal-font-setting.tsx+++ b/apps/desktop/src/app/settings/terminal-font-setting.tsx@@ -92,7 +92,6 @@ export function TerminalFontSetting() {// Sparse patch: PUT /api/config deep-merges, and echoing the cached// snapshot would overwrite keys other surfaces changed since it loaded.void saveHermesConfig(setNested({}, 'terminal.font_family', value), writeScope)-.then(result => {if (!result.ok) {throw new Error(t.settings.config.autosaveFailed)diff --git a/apps/desktop/src/app/settings/voice-provider-fields.tsx b/apps/desktop/src/app/settings/voice-provider-fields.tsxindex 29201849bae..dbb61c4650d 100644--- a/apps/desktop/src/app/settings/voice-provider-fields.tsx+++ b/apps/desktop/src/app/settings/voice-provider-fields.tsx@@ -102,7 +102,6 @@ export function VoiceProviderFields({setBaseline(config)writeConfigCache(config)})-.catch(err => notifyError(err, t.settings.config.autosaveFailed))}, 550)