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]: CLI freezes after using /new command (WSL) #34140
Using the /new command in an interactive Hermes session causes the terminal to become completely unresponsive. The prompt freezes and no further input is possible.
Steps to Reproduce
Start Hermes with hermes
Type /new (or /reset)
The terminal freezes immediately after confirming the command
Expected Behavior
The current session should be reset and a fresh session should start without any UI issues or freezing.
Actual Behavior
The terminal freezes completely after running /new. No further input is accepted until the process is killed.
The /new command calls new_session(), which performs heavy synchronous work (memory commit, multiple DB operations, memory manager hooks). Unlike /clear, it does not perform any prompt_toolkit UI reset (erase_screen, invalidate()) afterwards. This leaves the application in a broken state.
Proposed Fix (optional)
Extract the UI reset logic into a helper method _reset_cli_ui_after_session_change() and call it after both /clear and /new.
Activity