{"record":{"id":"b7dc87d63f4e0ac8","repo":"NousResearch/hermes-agent","slug":"real-stream-never-started-no-llm-credit-backend","errorCode":null,"errorMessage":"real stream never started (no LLM credit / backend?)","messagePattern":"real stream never started \\(no LLM credit / backend\\?\\)","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"apps/desktop/scripts/perf/scenarios/stream.mjs","lineNumber":182,"sourceCode":"        const el = document.querySelector(${JSON.stringify(SELECTORS.composer)})\n        el && el.dispatchEvent(new KeyboardEvent('keydown', { key: 'Enter', code: 'Enter', bubbles: true, cancelable: true }))\n      })()`)\n\n      const deadline = Date.now() + Number(opts.timeoutMs ?? 60000)\n      let started = false\n\n      while (Date.now() < deadline) {\n        await sleep(50)\n        const n = await cdp.eval(`document.querySelectorAll(${JSON.stringify(SELECTORS.assistantMessage)}).length`)\n\n        if (n > baseCount) {\n          started = true\n          break\n        }\n      }\n\n      if (!started) {\n        throw new Error('real stream never started (no LLM credit / backend?)')\n      }\n\n      await cdp.eval('window.__MO__.arm()')\n      // Let it run to completion or timeout.\n      const runDeadline = Date.now() + Number(opts.runMs ?? 30000)\n\n      while (Date.now() < runDeadline) {\n        await sleep(250)\n        const busy = await cdp.eval(`!!document.querySelector('[data-status=\"running\"], [data-busy=\"true\"]')`)\n\n        if (!busy) {\n          break\n        }\n      }\n    } else {\n      // Synthetic path: drive $messages directly. No LLM, no credits.\n      await cdp.eval(\n        `window.__PERF_DRIVE__.stream({ chunk: ${JSON.stringify(chunk)}, intervalMs: ${intervalMs}, totalTokens: ${tokens}, flushMinMs: ${flushMinMs} })`","sourceCodeStart":164,"sourceCodeEnd":200,"githubUrl":"https://github.com/NousResearch/hermes-agent/blob/c896c09c42910c584c4c7d2325b58c14713ea42c/apps/desktop/scripts/perf/scenarios/stream.mjs#L164-L200","documentation":"Error \"real stream never started (no LLM credit / backend?)\" thrown in NousResearch/hermes-agent.","triggerScenarios":"Thrown at apps/desktop/scripts/perf/scenarios/stream.mjs:182 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Confirm the backend has LLM credentials and quota, then retry.","Run with the synthetic stream path instead of a real LLM stream.","Check gateway logs for the stream start failure."],"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"}