Skip to content

The agent that grows with you

merge origin/main (2 commits) into ethie/pm-clean

ethernetc61800c19a63
diff --cc apps/desktop/electron/main.ts
index 6318ecc7ddf,8eb0ba65442..2cb9f80a085
--- a/apps/desktop/electron/main.ts
+++ b/apps/desktop/electron/main.ts
@@@ -281,9 -269,9 +282,10 @@@ import type { InstallStamp } from './in
import { createIntroRevealWindowController } from './intro-reveal-window'
import { isAuthWall, resolveLinkTitle } from './link-title-wall'
import { createLinkTitleWindow, guardLinkTitleSession, readLinkTitleWindowTitle } from './link-title-window'
+ import { linuxCrashDiagnostics } from './linux-crash-diagnostics'
import { notifyLauncherWindowRevealed } from './linux-launcher-ready'
import { createLocalBackendLifecycle, waitForTeardown } from './local-backend-lifecycle'
+import { registerMachineProfile } from './machine-profile'
import { ensureMainWindow } from './main-window-lifecycle'
import {
assertManagedUpdatePreflightClear,
@@@ -870,7 -987,23 +872,23 @@@ const DESKTOP_LOG_BUFFER_MAX_CHARS = 6
const DESKTOP_LOG_MAX_BYTES = 10 * 1024 * 1024
const DESKTOP_LOG_BACKUP_COUNT = 3
const DESKTOP_LOG_DISCARD_BYTES = DESKTOP_LOG_MAX_BYTES * 4
-const desktopLogBackupPath = n => `${DESKTOP_LOG_PATH}.${n}`
+const desktopLogBackupPath = (n: number) => `${DESKTOP_LOG_PATH}.${n}`
+
+ // #100573: keep the FATAL line and a local minidump for the next Linux SIGTRAP.
+ // Both must be wired before `app` is ready; the log-file switch is inherited by
+ // every child process, so a zygote or GPU CHECK lands in the same file.
+ const CRASH_DIAGNOSTICS = linuxCrashDiagnostics(path.dirname(DESKTOP_LOG_PATH))
+
+ if (CRASH_DIAGNOSTICS) {
+ fs.mkdirSync(path.dirname(DESKTOP_LOG_PATH), { recursive: true })
+
+ for (const [name, value] of CRASH_DIAGNOSTICS.switches) {
+ app.commandLine.appendSwitch(name, value)
+ }
+
+ crashReporter.start(CRASH_DIAGNOSTICS.crashReporter)
+ }
+
const BOOT_FAKE_MODE = process.env.HERMES_DESKTOP_BOOT_FAKE === '1'
const BOOT_FAKE_ERROR = process.env.HERMES_DESKTOP_BOOT_FAKE_ERROR || ''
// Automated teardown (Playwright's app.close(), harness scripts) quits with
diff --cc website/docs/user-guide/desktop.md
index e8b087b6797,07f3e08ac0b..e5d05dfb1aa
--- a/website/docs/user-guide/desktop.md
+++ b/website/docs/user-guide/desktop.md
@@@ -616,16 -614,17 +616,18 @@@ Boot logs land in `HERMES_HOME/logs/des
hermes logs gui -f
```
+For a canonical source installation, Desktop checks and runs the installation
+launcher. PM selects its interpreter and dependency generation. A missing
+bootstrap marker does not force installation when that launcher works.
+
+ On Linux, Chromium's own errors go to `HERMES_HOME/logs/desktop-chromium.log`, and a crash of the shell itself leaves a minidump under the app's `Crashpad/` directory (inside Electron's user-data directory, next to `connection.json`). If the window vanishes with `SIGTRAP` in the journal, the `FATAL:` line in that log names the check that fired; attach it to the bug report. Nothing is uploaded.
+
-Common resets:
+If Python dependencies are damaged, run the installation's `hermes pm repair`.
+Then restart Desktop. Do not delete guessed `venv` paths or PM facts. For
+damaged application files, repair through the
+[installation owner](../reference/package-management.md#source-installs-and-packaged-builds).
```bash
-# Force a clean first-launch setup (macOS/Linux)
-rm "$HOME/.hermes/hermes-agent/.hermes-bootstrap-complete"
-
-# Rebuild a broken Python venv (macOS/Linux)
-rm -rf "$HOME/.hermes/hermes-agent/venv"
-
# Reset a stuck macOS microphone prompt
tccutil reset Microphone com.nousresearch.hermes
```