From 57fd90a0cdd42adff5edaf979ff6550c565275ad Mon Sep 17 00:00:00 2001 From: cpacker Date: Sun, 26 Oct 2025 00:29:36 -0700 Subject: [PATCH] feat: ctrl-c wipes input --- src/cli/components/InputRich.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cli/components/InputRich.tsx b/src/cli/components/InputRich.tsx index 8c53aff..7d44c4e 100644 --- a/src/cli/components/InputRich.tsx +++ b/src/cli/components/InputRich.tsx @@ -89,7 +89,8 @@ export function Input({ // Second CTRL-C - call onExit callback which handles stats and exit if (onExit) onExit(); } else { - // First CTRL-C - start 1-second timer + // First CTRL-C - wipe input and start 1-second timer + setValue(""); setCtrlCPressed(true); if (ctrlCTimerRef.current) clearTimeout(ctrlCTimerRef.current); ctrlCTimerRef.current = setTimeout(() => {