mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-31 19:16:29 +00:00
Mirror all renderer console.log/warn/error/info/debug calls into desktop.log via IPC. A side-effect module (console-forward.ts) monkey- patches console.* at app init to send each call through a fire-and-forget ipcRenderer.send to the main process, which routes it through rememberLog() so the lines land in desktop.log alongside the main process's own [hermes] lines. Forwarded lines are prefixed [renderer:debug], [renderer:warn], [renderer:error], or [renderer:info]. Objects are JSON-serialized (capped at 4KB per line). The original console methods are preserved — devtools still shows the full interactive object inspection. This means the debug trace [trace:*] entries now land in desktop.log too, so you can read them with 'hermes logs desktop' without needing devtools open. |
||
|---|---|---|
| .. | ||
| bootstrap-installer | ||
| desktop | ||
| shared | ||