hermes - 💡(How to fix) Fix [Bug]: Terminal tool crashes with TypeError on sudo commands [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#25212Fetched 2026-05-14 03:48:03
View on GitHub
Comments
0
Participants
1
Timeline
4
Reactions
0
Participants
Timeline (top)
labeled ×4

Terminal tool crashes when running any sudo command (e.g., sudo apt update, sudo -n true).

Error Message

TypeError: PtyProcess.wait() takes 1 positional argument but 2 were given

Root Cause

Terminal tool crashes when running any sudo command (e.g., sudo apt update, sudo -n true).

Code Example

TypeError: PtyProcess.wait() takes 1 positional argument but 2 were given
RAW_BUFFERClick to expand / collapse

Description

Terminal tool crashes when running any sudo command (e.g., sudo apt update, sudo -n true).

Error

TypeError: PtyProcess.wait() takes 1 positional argument but 2 were given

Steps to Reproduce

  1. Run any sudo command through the terminal tool: sudo apt update
  2. Error occurs immediately

Environment

  • hermes-agent v0.13.0 (2026.5.7)
  • Ubuntu 24.04 (VM)
  • Passwordless sudo configured and working

Additional Context

  • Non-sudo commands work fine (echo, ls, python3)
  • Same commands work via execute_code (subprocess.run)
  • Bug appears to be in terminal_tool.py's sudo handling path
  • Worked before updating to v0.13.0

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