You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: When using the Hermes Agent in WSL, running the /clear command will cause the program to freeze. #23567
Related to #23155 — /clear confirmation dialog freezes in TUI mode due to _prompt_text_input racing with prompt_toolkit stdin. Merged PR #23454 (drive _prompt_text_input directly when off main thread) should address this. See also fix PRs #23173, #23571.
Current /clear dispatch goes through _confirm_destructive_slash before resetting the session: cli.py:7194.
The confirmation path now uses a prompt_toolkit-native modal rather than raw input(), explicitly to avoid stdin/EOF races with the running TUI: cli.py:8501.
_prompt_text_input_modal schedules modal setup onto the app loop with call_soon_threadsafe when invoked off the main thread: cli.py:6381.
Regression coverage asserts daemon-thread confirmations use the modal on Linux/Windows without raw stdin or hanging: tests/cli/test_slash_confirm_windows.py:103.
The relevant fix is contained in release tag v2026.5.16.
Activity
WangRoy-gh commentedon May 11, 2026
Issue confirmed. Current workaround would be using "hermes --tui"
alt-glitch commentedon May 11, 2026
Related to #23155 — /clear confirmation dialog freezes in TUI mode due to _prompt_text_input racing with prompt_toolkit stdin. Merged PR #23454 (drive _prompt_text_input directly when off main thread) should address this. See also fix PRs #23173, #23571.
teknium1 commentedon Jun 11, 2026
This appears to be fixed on current main. This is an automated hermes-sweeper review.
Evidence:
/cleardispatch goes through_confirm_destructive_slashbefore resetting the session:cli.py:7194.input(), explicitly to avoid stdin/EOF races with the running TUI:cli.py:8501._prompt_text_input_modalschedules modal setup onto the app loop withcall_soon_threadsafewhen invoked off the main thread:cli.py:6381.tests/cli/test_slash_confirm_windows.py:103.The relevant fix is contained in release tag
v2026.5.16.