NousResearch/hermes-agent · error · Error

profile " " not found in the rail

Error message

profile "${profile}" not found in the rail

What it means

Error "profile "${profile}" not found in the rail" thrown in NousResearch/hermes-agent.

Solutions

  1. Use the exact profile name as shown in the profile rail.
  2. Create the profile first, or pick one that exists in the app.

When it happens

Trigger: Thrown at apps/desktop/scripts/perf/scenarios/profile-switch.mjs:35 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of NousResearch/hermes-agent@c896c09c42 (2026-08-14). Data as JSON: /api/errors/7807972e0df1c5fe. Report an issue: GitHub.

Appendix: source

Thrown at apps/desktop/scripts/perf/scenarios/profile-switch.mjs:35

    if (!profile) {
      throw new Error('profile-switch needs --profile <name>')
    }

    await cdp.send('Runtime.enable')

    const t0 = await cdp.eval(`(() => {
      const rail = document.querySelector(${JSON.stringify(SELECTORS.profileRail)})
      if (!rail) return null
      const target = [...rail.querySelectorAll('button, [role="tab"]')].find(b =>
        ((b.getAttribute('aria-label') || '') + ' ' + (b.title || '') + ' ' + (b.textContent || ''))
          .toLowerCase().includes(${JSON.stringify(String(profile).toLowerCase())}))
      if (!target) return null
      target.click()
      return performance.now()
    })()`)

    if (t0 === null) {
      throw new Error(`profile "${profile}" not found in the rail`)
    }

    const deadline = Date.now() + settleTimeoutMs
    let settledMs = null

    while (Date.now() < deadline) {
      await sleep(100)
      const s = await cdp.eval(`(() => {
        const label = [...document.querySelectorAll('div[aria-hidden]')].find(el => /waking up/i.test(el.textContent || ''))
        const overlayVisible = label ? Number(getComputedStyle(label).opacity) > 0.05 : false
        return { t: performance.now(), overlayVisible, rows: document.querySelectorAll(${JSON.stringify(SELECTORS.rowButton)}).length }
      })()`)

      if (!s.overlayVisible && s.rows > 0) {
        settledMs = s.t - t0
        break
      }
    }

View on GitHub (pinned to c896c09c42)