Skip to content

[Bug]: Terminal tool crashes with TypeError on sudo commands #25212

Closed

Description

@Eddieghoul

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

Activity

  1. added
    type/bugSomething isn't working
    P1High — major feature broken, no workaround
    comp/toolsTool registry, model_tools, toolsets
    tool/terminalTerminal execution and process management
    on May 13, 2026
  2. teknium1 commented on Jun 21, 2026

    @teknium1
    Collaborator

    Closing as not reproducible on current main — verified the described behavior does not occur as written against current code. Reopen with repro steps if you still hit it on the latest version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1High — major feature broken, no workaroundcomp/toolsTool registry, model_tools, toolsetstool/terminalTerminal execution and process managementtype/bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions