{"record":{"id":"8537810b6409141e","repo":"NousResearch/hermes-agent","slug":"generation-produced-no-drafts","errorCode":null,"errorMessage":"generation produced no drafts","messagePattern":"generation produced no drafts","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"apps/desktop/src/store/pet-generate.ts","lineNumber":425,"sourceCode":"      'pet.generate',\n      {\n        prompt,\n        style: options.style ?? 'auto',\n        count: options.count ?? 4,\n        ...(referenceImage ? { referenceImage } : {}),\n        ...($petGenProvider.get() ? { provider: $petGenProvider.get() } : {})\n      },\n      GENERATE_TIMEOUT_MS,\n      controller.signal\n    )\n\n    // Stopped (or superseded by a newer round) while the RPC was in flight.\n    if (!gen.isCurrent(runId)) {\n      return false\n    }\n\n    if (!result?.ok || !result.drafts?.length) {\n      throw new Error('generation produced no drafts')\n    }\n\n    $petGenToken.set(result.token)\n    // Keep a concept for the hatch row prompts even on an image-only generate.\n    $petGenPrompt.set(prompt || 'a custom pet')\n    $petGenDrafts.set(result.drafts)\n    $petGenSelected.set(result.drafts[0]?.index ?? 0)\n    $petGenStatus.set('ready')\n    notifyPetGenDone('Pet drafts ready', 'Your pet looks finished — pick one to hatch.', 'success')\n\n    return true\n  } catch (e) {\n    if (!gen.isCurrent(runId)) {\n      return false\n    }\n\n    if (isMissingMethod(e)) {\n      $petGenStatus.set('stale')","sourceCodeStart":407,"sourceCodeEnd":443,"githubUrl":"https://github.com/NousResearch/hermes-agent/blob/c896c09c42910c584c4c7d2325b58c14713ea42c/apps/desktop/src/store/pet-generate.ts#L407-L443","documentation":"Error \"generation produced no drafts\" thrown in NousResearch/hermes-agent.","triggerScenarios":"Thrown at apps/desktop/src/store/pet-generate.ts:425 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Retry generation; the image backend returned no drafts.","Check the image-generation provider configuration and API key in `hermes tools`.","Simplify or change the prompt and reference image, then regenerate."],"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"}