{"record":{"id":"0fe71c42c02c90ad","repo":"NousResearch/hermes-agent","slug":"desktop-preview-buffer-bridge-is-unavailable","errorCode":null,"errorMessage":"Desktop preview buffer bridge is unavailable","messagePattern":"Desktop preview buffer bridge is unavailable","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"apps/desktop/src/lib/local-preview.ts","lineNumber":167,"sourceCode":"\n  if (!bridge?.openPreviewInBrowser) {\n    throw new Error('Desktop preview browser bridge is unavailable')\n  }\n\n  const dataUrl = target.dataUrl && validatedRemoteHtmlDataUrl(target.dataUrl)\n\n  if (!dataUrl) {\n    if (target.transient) {\n      throw new Error('Remote HTML preview could not be loaded')\n    }\n\n    await bridge.openPreviewInBrowser(target.url)\n\n    return\n  }\n\n  if (!bridge.saveImageBuffer) {\n    throw new Error('Desktop preview buffer bridge is unavailable')\n  }\n\n  const decoded = atob(dataUrl.slice(dataUrl.indexOf(',') + 1))\n  const bytes = Uint8Array.from(decoded, char => char.charCodeAt(0))\n  const filePath = await bridge.saveImageBuffer(bytes, '.html')\n\n  if (!filePath) {\n    throw new Error('Could not stage remote HTML preview')\n  }\n\n  await bridge.openPreviewInBrowser(pathToFileUrl(filePath))\n}\n\nexport function localPreviewTarget(rawTarget: string, cwd?: string | null): PreviewTarget | null {\n  const raw = rawTarget.trim().replace(/^`|`$/g, '')\n\n  if (!raw) {\n    return null","sourceCodeStart":149,"sourceCodeEnd":185,"githubUrl":"https://github.com/NousResearch/hermes-agent/blob/c896c09c42910c584c4c7d2325b58c14713ea42c/apps/desktop/src/lib/local-preview.ts#L149-L185","documentation":"Error \"Desktop preview buffer bridge is unavailable\" thrown in NousResearch/hermes-agent.","triggerScenarios":"Thrown at apps/desktop/src/lib/local-preview.ts:167 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Run this feature inside the Hermes desktop app; the preview buffer bridge only exists there.","Reconnect the desktop bridge and retry."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"c896c09c42910c584c4c7d2325b58c14713ea42c","analyzedAt":"2026-08-14T17:18:01.089Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}