From c0e5abaff1c752d268bcacbef163efa4ab2dc897 Mon Sep 17 00:00:00 2001 From: cthomas Date: Tue, 16 Dec 2025 12:23:26 -0800 Subject: [PATCH] feat: add goodbye message (#242) --- src/cli/App.tsx | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/cli/App.tsx b/src/cli/App.tsx index 8160900..961fe0b 100644 --- a/src/cli/App.tsx +++ b/src/cli/App.tsx @@ -1591,6 +1591,17 @@ export default function App({ // Special handling for /exit command - show stats and exit if (trimmed === "/exit") { + const cmdId = uid("cmd"); + buffersRef.current.byId.set(cmdId, { + kind: "command", + id: cmdId, + input: trimmed, + output: "See ya!", + phase: "finished", + success: true, + }); + buffersRef.current.order.push(cmdId); + refreshDerived(); handleExit(); return { submitted: true }; }