Skip to content

fix(cli): prevent update crash in non-TTY environments#3094

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

fix(cli): prevent update crash in non-TTY environments#3094
teknium1 merged 1 commit into
mainfrom
hermes/hermes-7d7ac769

Conversation

@teknium1

Copy link
Copy Markdown
Contributor

cmd_update calls input() unconditionally during config migration. In headless environments (Telegram gateway, systemd), there's no TTY — input() throws EOFError and the update crashes, preventing the gateway from restarting.

Guard with sys.stdin.isatty(), default to skipping the migration prompt when non-interactive.

Salvaged from PR #2850 by @devorun. Closes #2848.

cmd_update calls input() unconditionally during config migration.
In headless environments (Telegram gateway, systemd), there's no TTY,
so input() throws EOFError and the update crashes.

Guard with sys.stdin.isatty(), default to skipping the migration
prompt when non-interactive.

Salvaged from PR #2850 by devorun. Closes #2848.
@teknium1 teknium1 merged commit 41081d7 into main Mar 26, 2026
outsourc-e pushed a commit to outsourc-e/hermes-agent that referenced this pull request Mar 26, 2026
…3094)

cmd_update calls input() unconditionally during config migration.
In headless environments (Telegram gateway, systemd), there's no TTY,
so input() throws EOFError and the update crashes.

Guard with sys.stdin.isatty(), default to skipping the migration
prompt when non-interactive.

Salvaged from PR NousResearch#2850 by devorun. Closes NousResearch#2848.
angelburgosrosado pushed a commit to angelburgosrosado/hermes-agent that referenced this pull request Apr 27, 2026
…3094)

cmd_update calls input() unconditionally during config migration.
In headless environments (Telegram gateway, systemd), there's no TTY,
so input() throws EOFError and the update crashes.

Guard with sys.stdin.isatty(), default to skipping the migration
prompt when non-interactive.

Salvaged from PR NousResearch#2850 by devorun. Closes NousResearch#2848.
02356abc pushed a commit to 02356abc/hermes-agent that referenced this pull request May 14, 2026
…3094)

cmd_update calls input() unconditionally during config migration.
In headless environments (Telegram gateway, systemd), there's no TTY,
so input() throws EOFError and the update crashes.

Guard with sys.stdin.isatty(), default to skipping the migration
prompt when non-interactive.

Salvaged from PR NousResearch#2850 by devorun. Closes NousResearch#2848.
olympus-terminal pushed a commit to olympus-terminal/hermes-agent that referenced this pull request May 16, 2026
…3094)

cmd_update calls input() unconditionally during config migration.
In headless environments (Telegram gateway, systemd), there's no TTY,
so input() throws EOFError and the update crashes.

Guard with sys.stdin.isatty(), default to skipping the migration
prompt when non-interactive.

Salvaged from PR NousResearch#2850 by devorun. Closes NousResearch#2848.
gweeteve pushed a commit to gweeteve/hermes-agent that referenced this pull request Jun 2, 2026
…3094)

cmd_update calls input() unconditionally during config migration.
In headless environments (Telegram gateway, systemd), there's no TTY,
so input() throws EOFError and the update crashes.

Guard with sys.stdin.isatty(), default to skipping the migration
prompt when non-interactive.

Salvaged from PR NousResearch#2850 by devorun. Closes NousResearch#2848.
Egavasyug pushed a commit to Egavasyug/hermes-agent that referenced this pull request Jun 10, 2026
…3094)

cmd_update calls input() unconditionally during config migration.
In headless environments (Telegram gateway, systemd), there's no TTY,
so input() throws EOFError and the update crashes.

Guard with sys.stdin.isatty(), default to skipping the migration
prompt when non-interactive.

Salvaged from PR NousResearch#2850 by devorun. Closes NousResearch#2848.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

/update from Telegram fails when config migration needs interactive input

1 participant