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 }; }