hermes - 💡(How to fix) Fix [Bug]: infinite loop in-in between auth, unable to do anything else as it reruns while integrating composio cli [1 comments, 1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
NousResearch/hermes-agent#15629Fetched 2026-04-26 05:26:02
View on GitHub
Comments
1
Participants
1
Timeline
6
Reactions
0
Participants
Timeline (top)
labeled ×5commented ×1

Error Message

Additional Logs / Traceback (optional)

Root Cause

Root Cause Analysis (optional)

Code Example

/wait-for-auth
[59941] Authentication still in progress
[59941] Querying: http:wait-for-auth
[59237] Authentication still in progress
[59237] Querying: http://=owait-for-auth
[59237] Authentication completed by other instance
[59941] Authentication completed by other instance
[59941] Authentication completed by another instance. Using tokens from disk
[59237] Authentication completed by another instance. Using tokens from disk
[59237] Authentication was completed by another instance - will use tokens from disk
[59941] Authentication was completed by another instance - will use tokens from disk
[59237] Authentication required but skipping browser auth - using shared auth
[59237] WARNING: waitForAuthCode called in secondary instance - this is unexpected
[59941] Authentication required but skipping browser auth - using shared auth
[59941] WARNING: waitForAuthCode called in secondary instance - this is unexpected

---
RAW_BUFFERClick to expand / collapse

Bug Description

I was integrating composio cli when I ran into an auth issue which Hermes kept on retry whenever I opened into a fresh session, in multiple terminal.

Steps to Reproduce

  1. run Hermes
  2. ask it to connect composio cli, it opens a web page to login to compasio and it fails
  3. the agents keeps on reopening the login screen even after closing it
  4. while opening a new terminal it should comes there and breaks everything.

fix it!

Expected Behavior

  1. run Hermes
  2. ask it to connect composio cli, it opens a web page to login to compasio and it fails
  3. the agents fails and never gives me an option to add a prompt

Actual Behavior

  1. run Hermes
  2. ask it to connect composio cli, it opens a web page to login to compasio and it fails
  3. the agents fails and never gives me an option to add a prompt
  4. even after terminating the command and opening a new Hermes session on diffrent terminal goes to the same loop, before even sending my first message.

Affected Component

CLI (interactive chat)

Messaging Platform (if gateway-related)

N/A (CLI only)

Debug Report

/wait-for-auth
[59941] Authentication still in progress
[59941] Querying: http:wait-for-auth
[59237] Authentication still in progress
[59237] Querying: http://=owait-for-auth
[59237] Authentication completed by other instance
[59941] Authentication completed by other instance
[59941] Authentication completed by another instance. Using tokens from disk
[59237] Authentication completed by another instance. Using tokens from disk
[59237] Authentication was completed by another instance - will use tokens from disk
[59941] Authentication was completed by another instance - will use tokens from disk
[59237] Authentication required but skipping browser auth - using shared auth
[59237] WARNING: waitForAuthCode called in secondary instance - this is unexpected
[59941] Authentication required but skipping browser auth - using shared auth
[59941] WARNING: waitForAuthCode called in secondary instance - this is unexpected

Operating System

r

Python Version

No response

Hermes Version

No response

Additional Logs / Traceback (optional)

Root Cause Analysis (optional)

no idea bnjnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnj

Proposed Fix (optional)

No response

Are you willing to submit a PR for this?

  • I'd like to fix this myself and submit a PR

extent analysis

TL;DR

The issue can be mitigated by ensuring that only one instance of Hermes is running at a time to prevent authentication conflicts.

Guidance

  • Verify that no other instances of Hermes are running in the background before starting a new session.
  • Check the authentication flow to ensure that it properly handles multiple instances and shared authentication.
  • Investigate the waitForAuthCode function to understand why it's being called in secondary instances and how to prevent this unexpected behavior.
  • Consider implementing a mechanism to detect and prevent multiple instances of Hermes from running simultaneously.

Example

No code snippet is provided as the issue lacks specific details about the implementation.

Notes

The root cause of the issue is unclear, but it appears to be related to multiple instances of Hermes interfering with each other's authentication processes. Further investigation is needed to determine the exact cause and implement a permanent fix.

Recommendation

Apply workaround: Ensure that only one instance of Hermes is running at a time to prevent authentication conflicts, as this seems to be the most straightforward way to mitigate the issue until a more permanent solution can be found.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

hermes - 💡(How to fix) Fix [Bug]: infinite loop in-in between auth, unable to do anything else as it reruns while integrating composio cli [1 comments, 1 participants]