mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-06-23 02:13:14 +08:00
Native Windows bypassed the destructive-slash modal and fell back to a raw input() prompt. When the confirm was triggered from the process_loop daemon thread (the normal case), that input() deadlocked against prompt_toolkit's main-thread stdin ownership: bare /reset froze with Ctrl-C swallowed, while /reset now worked only because it skips the prompt. Route native Windows through the existing call_soon_threadsafe modal path (the same key-binding channel that already handles normal typing on Windows); keep the stdin fallback only for the safe no-app / scheduling-failure cases, and clean-cancel (None) off the main thread on win32 so a degraded path never re-deadlocks. Addresses #33961 Refs #30768
605 KiB
605 KiB