The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fmt(js): `npm run fix` on merge (#83539)
hermes-seaeye[bot]a1bfbccc02d5
diff --git a/apps/desktop/electron/renderer-log.test.ts b/apps/desktop/electron/renderer-log.test.tsindex cb45b1edbb0..a02caccf01d 100644--- a/apps/desktop/electron/renderer-log.test.ts+++ b/apps/desktop/electron/renderer-log.test.ts@@ -30,6 +30,7 @@ describe('attachRendererConsoleCapture', () => {it('logs error-level messages and skips the rest', () => {const log = vi.fn()let handler: ((...args: unknown[]) => void) | undefined+const win = {webContents: {on: (_event: string, listener: (...args: unknown[]) => void) => {diff --git a/apps/desktop/electron/renderer-log.ts b/apps/desktop/electron/renderer-log.tsindex 095d5a00b63..d3a97c6daad 100644--- a/apps/desktop/electron/renderer-log.ts+++ b/apps/desktop/electron/renderer-log.ts@@ -43,6 +43,7 @@ export function formatRendererConsoleLine(): string | null {const details =detailsOrLevel && typeof detailsOrLevel === 'object' ? (detailsOrLevel as ConsoleMessageDetails) : null+const level = details ? details.level : detailsOrLevelif (level !== 3) {@@ -84,6 +85,7 @@ export function formatRendererBoundaryReport(const head = `[renderer crash:${clamp(label, 64) || 'unknown'}] [error-boundary:${clamp(boundary, 64) || 'unknown'}] ${clamp(message, 2000) || '(no message)'}`+const stack = clamp(componentStack, 4000).trim()return stack ? `${head}\n${stack}` : headdiff --git a/apps/desktop/src/components/error-boundary.tsx b/apps/desktop/src/components/error-boundary.tsxindex 19b64dcab77..6ec1e4ca20d 100644--- a/apps/desktop/src/components/error-boundary.tsx+++ b/apps/desktop/src/components/error-boundary.tsx@@ -53,6 +53,7 @@ export class ErrorBoundary extends Component<ErrorBoundaryProps, ErrorBoundaryStconst label = this.props.label ?? ''const tag = label ? `[error-boundary:${label}]` : '[error-boundary]'console.error(tag, error, info.componentStack)+// Persist to desktop.log via Electron (#79428): console.error only reaches// the main process for windows with a console hook, is minified, and loses// the component stack. This survives the window and names the component.@@ -66,6 +67,7 @@ export class ErrorBoundary extends Component<ErrorBoundaryProps, ErrorBoundarySt} catch {// Logging must never take the boundary down with it.}+this.props.onError?.(error, info)if (this.props.label === 'root' && isTransientAssistantUiLookupError(error) && this.takeAutoRecoveryAttempt()) {