{"record":{"id":"ca8c47d18dd17e9b","repo":"NousResearch/hermes-agent","slug":"could-not-attach-label","errorCode":null,"errorMessage":"Could not attach ${label}","messagePattern":"Could not attach (.+?)","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"apps/desktop/src/app/session/hooks/use-prompt-actions/index.ts","lineNumber":170,"sourceCode":"      throw new Error(`Could not read ${label}`)\n    }\n  }\n\n  const stageForSession = async (liveSessionId: string): Promise<ComposerAttachment> => {\n    if (attachment.kind === 'image') {\n      const result = imagePayload\n        ? await requestGateway<ImageAttachResponse>('image.attach_bytes', {\n            session_id: liveSessionId,\n            content_base64: imagePayload.contentBase64,\n            filename: imagePayload.filename\n          })\n        : await requestGateway<ImageAttachResponse>('image.attach', {\n            path,\n            session_id: liveSessionId\n          })\n\n      if (!result.attached) {\n        throw new Error(result.message || `Could not attach ${label}`)\n      }\n\n      const attachedPath = result.path || path\n\n      return {\n        ...attachment,\n        attachedSessionId: liveSessionId,\n        label: attachedPath ? pathLabel(attachedPath) : attachment.label,\n        path: attachedPath,\n        uploadState: undefined\n      }\n    }\n\n    const result = await requestGateway<FileAttachResponse>('file.attach', {\n      name: label,\n      path,\n      session_id: liveSessionId,\n      ...(fileDataUrl ? { data_url: fileDataUrl } : {})","sourceCodeStart":152,"sourceCodeEnd":188,"githubUrl":"https://github.com/NousResearch/hermes-agent/blob/c896c09c42910c584c4c7d2325b58c14713ea42c/apps/desktop/src/app/session/hooks/use-prompt-actions/index.ts#L152-L188","documentation":"Error \"Could not attach ${label}\" thrown in NousResearch/hermes-agent.","triggerScenarios":"Thrown at apps/desktop/src/app/session/hooks/use-prompt-actions/index.ts:170 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Retry the attachment; the upload to the gateway failed.","Use a smaller file or a supported file type.","Confirm the gateway is connected and the upload endpoint is reachable."],"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"}