feat: add goodbye message (#242)

This commit is contained in:
cthomas
2025-12-16 12:23:26 -08:00
committed by GitHub
parent f0018fe327
commit c0e5abaff1

View File

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