The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
Merge remote-tracking branch 'origin/main' into ethie/pm-clean
etherneted6e37f9c11e
diff --cc apps/desktop/electron/main.tsindex 7fd2dbb9c8e,6749b8bdd08..ce159e63641--- a/apps/desktop/electron/main.ts+++ b/apps/desktop/electron/main.ts@@@ -295,8 -286,8 +295,9 @@@ import { createLinkTitleWindow, guardLiimport { CHROMIUM_LOG_FILENAME, enableLinuxCrashDiagnostics, linuxCrashDiagnostics } from './linux-crash-diagnostics'import { notifyLauncherWindowRevealed } from './linux-launcher-ready'import { createLocalBackendLifecycle, waitForTeardown } from './local-backend-lifecycle'+ import { localSkinProfileKey, readLocalSkinPayload } from './local-skin'import { ACTIVE_LOG_POLL_MS, planLogRotation, reclaimActiveLogIfOversized } from './log-rotation'+import { registerMachineProfile } from './machine-profile'import { ensureMainWindow } from './main-window-lifecycle'import {assertManagedUpdatePreflightClear,@@@ -17244,21 -18196,19 +17259,34 @@@ ipcMain.on('hermes:logs:renderer-error'flushDesktopLogBufferSync()})+ // The preload reads this small, sanitized payload synchronously so the renderer+ // can register the local skin before its first theme paint. It stays independent+ // of the selected gateway, which can be an offline remote primary.+ ipcMain.on('hermes:skin:local', event => {+ // The window route is more specific than the global next-launch preference:+ // a peer can be booting another profile while that preference changes.+ event.returnValue = readLocalSkinPayload(+ HERMES_HOME,+ windowConnectionRoutes.get(event.sender.id)?.profile,+ primaryProfileKey()+ )+ })++// Renderer error toasts (notifyError): the toast shows the summarized copy,+// so the caller posts the full error here for desktop.log. Fire-and-forget,+// like renderer-error — the toast must never depend on this round-trip.+// Clamp: the line is renderer-supplied.+ipcMain.on('hermes:logs:renderer-line', (_event, line) => {+ const text = typeof line === 'string' ? line.slice(0, 6000) : ''++ if (!text) {+ return+ }++ rememberLog(text)+ flushDesktopLogBufferSync()+})+// Local filesystem + plugin-root IPC (readDir/reveal/rename/trash/…) — see fs-ipc.ts.registerFsIpc({hermesHome: HERMES_HOME,diff --cc apps/desktop/electron/preload.tsindex cd6fd8d6c3f,54599422392..28631ce9e16--- a/apps/desktop/electron/preload.ts+++ b/apps/desktop/electron/preload.ts@@@ -14,9 -14,11 +14,13 @@@ import { customWindowControlsEnabled }const translucencySupport = ipcRenderer.sendSync('hermes:translucency:support')const hudWindowing = ipcRenderer.sendSync('hermes:hud:windowing')const hudNativeDrag = hudWindowing?.nativeDrag === true-const launchFlags = ipcRenderer.sendSync('hermes:launch-flags')++const launchFlags: { localModels?: boolean; guestOnboarding?: boolean; skipIntro?: boolean } | undefined =+ ipcRenderer.sendSync('hermes:feature-flags')+ // Local, sanitized skin payload for the first renderer theme paint. This does+ // not wait on `gateway.ready`, so an unreachable remote primary cannot force+ // the built-in palette over the skin configured on this machine.+ const localSkin = ipcRenderer.sendSync('hermes:skin:local')contextBridge.exposeInMainWorld('hermesDesktop', {glassSupported: translucencySupport?.glass === true,diff --cc apps/desktop/src/global.d.tsindex 52356020606,b331b634172..b526f150512--- a/apps/desktop/src/global.d.ts+++ b/apps/desktop/src/global.d.ts@@@ -355,10 -369,15 +356,12 @@@ declare globalglassSupported?: boolean/** Main-process fact: this OS can do any translucency at all (not Linux). */translucencySupported?: boolean- /** Launch flag: the app was started with --local, enabling the- * local-models GUI surfaces. Absent/false = every local surface hides. */+ /** Feature flag: the local-models UI is enabled. */localModelsEnabled?: boolean- /** Launch flag: the Nous free tier is on for this launch- * (HERMES_GUEST_ONBOARDING=1 or --guest-onboarding). Read-only fact the- * main process also stamps onto every backend it spawns. */+ /** Launch flag shared with every backend the app starts. */guestOnboardingEnabled?: boolean+ /** Sanitized local `display.skin`, available before any gateway connects. */+ localSkin?: { profile: string; skin: HermesSkin } | null/** Launch flag: skip the first-run film (HERMES_SKIP_INTRO=1 or* --skip-intro) so a fresh HERMES_HOME lands on the guided chat. */skipIntro?: boolean