f6f8ffc3d2
pypsrp alters terminal tty state during remote sessions. Any readline() call after WinRM work receives \r instead of \n on Enter (terminal in raw mode), causing the prompt to spin printing ^M and never return. Fix: check for existing snapshot and ask the user at the very beginning of the command, before any WinRM/pypsrp connections are opened, when the terminal is still in canonical mode. If the user declines, abort early. At the end, if the snapshot still exists (race-safe), delete silently and recreate — no second prompt needed. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>