{"record":{"id":"7807972e0df1c5fe","repo":"NousResearch/hermes-agent","slug":"profile-profile-not-found-in-the-rail","errorCode":null,"errorMessage":"profile \"${profile}\" not found in the rail","messagePattern":"profile \"(.+?)\" not found in the rail","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"apps/desktop/scripts/perf/scenarios/profile-switch.mjs","lineNumber":35,"sourceCode":"    if (!profile) {\n      throw new Error('profile-switch needs --profile <name>')\n    }\n\n    await cdp.send('Runtime.enable')\n\n    const t0 = await cdp.eval(`(() => {\n      const rail = document.querySelector(${JSON.stringify(SELECTORS.profileRail)})\n      if (!rail) return null\n      const target = [...rail.querySelectorAll('button, [role=\"tab\"]')].find(b =>\n        ((b.getAttribute('aria-label') || '') + ' ' + (b.title || '') + ' ' + (b.textContent || ''))\n          .toLowerCase().includes(${JSON.stringify(String(profile).toLowerCase())}))\n      if (!target) return null\n      target.click()\n      return performance.now()\n    })()`)\n\n    if (t0 === null) {\n      throw new Error(`profile \"${profile}\" not found in the rail`)\n    }\n\n    const deadline = Date.now() + settleTimeoutMs\n    let settledMs = null\n\n    while (Date.now() < deadline) {\n      await sleep(100)\n      const s = await cdp.eval(`(() => {\n        const label = [...document.querySelectorAll('div[aria-hidden]')].find(el => /waking up/i.test(el.textContent || ''))\n        const overlayVisible = label ? Number(getComputedStyle(label).opacity) > 0.05 : false\n        return { t: performance.now(), overlayVisible, rows: document.querySelectorAll(${JSON.stringify(SELECTORS.rowButton)}).length }\n      })()`)\n\n      if (!s.overlayVisible && s.rows > 0) {\n        settledMs = s.t - t0\n        break\n      }\n    }","sourceCodeStart":17,"sourceCodeEnd":53,"githubUrl":"https://github.com/NousResearch/hermes-agent/blob/c896c09c42910c584c4c7d2325b58c14713ea42c/apps/desktop/scripts/perf/scenarios/profile-switch.mjs#L17-L53","documentation":"Error \"profile \"${profile}\" not found in the rail\" thrown in NousResearch/hermes-agent.","triggerScenarios":"Thrown at apps/desktop/scripts/perf/scenarios/profile-switch.mjs:35 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use the exact profile name as shown in the profile rail.","Create the profile first, or pick one that exists in the app."],"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"}