Skip to content

fix(setup): use explicit key mapping for returning-user menu dispatch#3083

Merged
teknium1 merged 1 commit intomainfrom
hermes/hermes-7d7ac769
Mar 26, 2026
Merged

fix(setup): use explicit key mapping for returning-user menu dispatch#3083
teknium1 merged 1 commit intomainfrom
hermes/hermes-7d7ac769

Conversation

@teknium1
Copy link
Copy Markdown
Contributor

Fixes off-by-one in hermes setup returning-user menu. SETUP_SECTIONS includes TTS but the menu skips it, so positional indexing dispatched the wrong section for choices 4-7 (e.g. picking Terminal launched TTS).

Replaces SETUP_SECTIONS[choice - 3] with explicit key list + lookup by key. Resilient to future additions.

Cherry-picked from PR #2610 by @ygd58. Fixes #2609.

@teknium1 teknium1 merged commit 0d7f739 into main Mar 26, 2026
@github-actions
Copy link
Copy Markdown

⚠️ Supply Chain Risk Detected

This PR contains patterns commonly associated with supply chain attacks. This does not mean the PR is malicious — but these patterns require careful human review before merging.

⚠️ WARNING: Install hook files modified

These files can execute code during package installation or interpreter startup.

Files:

hermes_cli/setup.py

Automated scan triggered by supply-chain-audit. If this is a false positive, a maintainer can approve after manual review.

outsourc-e pushed a commit to outsourc-e/hermes-agent that referenced this pull request Mar 26, 2026
… instead of positional index (NousResearch#3083)

Co-authored-by: ygd58 <buraysandro9@gmail.com>
StreamOfRon pushed a commit to StreamOfRon/hermes-agent that referenced this pull request Mar 29, 2026
… instead of positional index (NousResearch#3083)

Co-authored-by: ygd58 <buraysandro9@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants