{"record":{"id":"53265b119d0c905e","repo":"NousResearch/hermes-agent","slug":"result-confirm-message-trim-translatenow-cr","errorCode":null,"errorMessage":"result.confirm_message?.trim() || translateNow('cron.modelImpact.saveFailed')","messagePattern":"result\\.confirm_message\\?\\.trim\\(\\) \\|\\| translateNow\\('cron\\.modelImpact\\.saveFailed'\\)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"apps/desktop/src/store/cron-model-impact.ts","lineNumber":155,"sourceCode":"      label: translateNow('cron.modelImpact.review'),\n      onClick: () => {\n        if (currentActionScope(profile, connection)) {\n          requestCronReview()\n        }\n      }\n    }\n  })\n}\n\nexport async function setMainModelAssignment(\n  request: Omit<ModelAssignmentRequest, 'scope'>\n): Promise<ModelAssignmentResponse> {\n  const { connection, generation } = beginCronModelImpactAssignment()\n  const profile = profileIdentity()\n  const result = await setModelAssignment({ ...request, scope: 'main' })\n\n  if (result.ok !== true) {\n    throw new Error(result.confirm_message?.trim() || translateNow('cron.modelImpact.saveFailed'))\n  }\n\n  if (!currentResponseScope(profile, connection, generation)) {\n    return result\n  }\n\n  // Missing means an older backend. It is not evidence that an existing impact\n  // has gone away, so leave the current warning untouched.\n  if (result.cron_model_impact !== undefined) {\n    const impact = parseCronModelImpact(result.cron_model_impact)\n\n    if (impact) {\n      publishImpact(impact, profile, connection, generation)\n    }\n  }\n\n  return result\n}","sourceCodeStart":137,"sourceCodeEnd":173,"githubUrl":"https://github.com/NousResearch/hermes-agent/blob/c896c09c42910c584c4c7d2325b58c14713ea42c/apps/desktop/src/store/cron-model-impact.ts#L137-L173","documentation":"Error \"result.confirm_message?.trim() || translateNow('cron.modelImpact.saveFailed')\" thrown in NousResearch/hermes-agent.","triggerScenarios":"Thrown at apps/desktop/src/store/cron-model-impact.ts:155 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Review the save error returned by the gateway and retry.","Verify the cron job fields are valid before saving the model-impact change."],"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-15T17:31:12.345Z"}