hermes - ✅(Solved) Fix [Setup]: can't paste api key critical on Linux human need !! stop bot for critical issue [1 pull requests, 2 comments, 2 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#16491Fetched 2026-04-28 06:52:59
View on GitHub
Comments
2
Participants
2
Timeline
8
Reactions
0
Timeline (top)
labeled ×4commented ×2cross-referenced ×1renamed ×1

Error Message

Full Error Output

Fix Action

Fixed

PR fix notes

PR #16784: fix(cli): sanitize bracketed paste markers during setup

Description (problem / solution / changelog)

## What does this PR do?

Fixes a setup input parsing bug where terminal bracketed-paste control markers can be included in pasted API keys on Linux/WSL. The setup prompt now sanitizes those markers before persisting values, so pasted keys are accepted reliably in both normal and hidden/password prompts.

Related Issue

Fixes #16491

Type of Change

  • 🐛 Bug fix (non-breaking change that fixes an issue)
  • ✨ New feature (non-breaking change that adds functionality)
  • 🔒 Security fix
  • 📝 Documentation update
  • ✅ Tests (adding or improving test coverage)
  • ♻️ Refactor (no behavior change)
  • 🎯 New skill (bundled or hub)

Changes Made

  • Updated hermes_cli/setup.py to sanitize bracketed-paste markers (ESC[200~ / ESC[201~) from user input in prompt().
  • Added _sanitize_pasted_input() helper and shared regex pattern for marker stripping.
  • Added regression tests in tests/hermes_cli/test_setup_prompt_menus.py for both standard and password prompt paths.

How to Test

  1. Run hermes setup on Linux or WSL.
  2. Paste an API key into setup prompts (including hidden/password API key prompts).
  3. Confirm the saved value no longer includes bracketed-paste markers and setup completes normally.

Checklist

Code

  • I've read the Contributing Guide
  • My commit messages follow Conventional Commits (fix(scope):, feat(scope):, etc.)
  • I searched for existing PRs to make sure this isn't a duplicate
  • My PR contains only changes related to this fix/feature (no unrelated commits)
  • I've run pytest tests/ -q and all tests pass
  • I've added tests for my changes (required for bug fixes, strongly encouraged for features)
  • I've tested on my platform: Windows 10 (repo edit), target behavior validated by regression tests for Linux/WSL paste markers

Documentation & Housekeeping

  • I've updated relevant documentation (README, docs/, docstrings) — or N/A
  • I've updated cli-config.yaml.example if I added/changed config keys — or N/A
  • I've updated CONTRIBUTING.md or AGENTS.md if I changed architecture or workflows — or N/A
  • I've considered cross-platform impact (Windows, macOS) per the compatibility guide — or N/A
  • I've updated tool descriptions/schemas if I changed tool behavior — or N/A

Screenshots / Logs

  • N/A (CLI setup input handling fix)

Changed files

  • hermes_cli/setup.py (modified, +13/-1)
  • tests/hermes_cli/test_setup_prompt_menus.py (modified, +22/-0)

Code Example



---

Can't paste api key
RAW_BUFFERClick to expand / collapse

What's Going Wrong?

I can't paste any API key when using hermes agent critical issue on linux

Steps Taken

Launch hermes setup Try to paste api key on linux or windows wsl didn't work at all Critical issue

Installation Method

Install script (curl | bash)

Operating System

Ubuntu and windows lastest

Python Version

No response

Hermes Version

No response

Debug Report

Full Error Output

Can't paste api key

What I've Already Tried

No response

extent analysis

TL;DR

The issue might be related to a limitation or bug in the hermes agent or its interaction with the Linux or WSL environment, preventing the paste function from working as expected for entering the API key.

Guidance

  • Check if there's an alternative method to enter the API key, such as manually typing it or using a configuration file, to bypass the paste issue.
  • Investigate if the problem is specific to the hermes agent version or the Linux/WSL environment by trying a different version of hermes or a different operating system.
  • Look for any known issues or open tickets related to paste functionality in hermes agent on Linux or WSL that might provide a workaround or fix.
  • Consider reaching out to the hermes agent support or community for further assistance, as the issue seems to be quite specific and critical.

Notes

The lack of specific details about the hermes version, Python version, and the absence of a debug report or full error output limits the ability to provide a more precise solution. The issue might be resolved in a newer version of hermes or by using a different installation method.

Recommendation

Apply workaround: Given the critical nature of the issue and the lack of information about potential fixes, applying a workaround such as manually entering the API key or using a different environment seems to be the most viable immediate solution.

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 - ✅(Solved) Fix [Setup]: can't paste api key critical on Linux human need !! stop bot for critical issue [1 pull requests, 2 comments, 2 participants]