pi: asynchronous exit summaries

♠ Problem statement : ctrl+d in pi took several seconds to quit. The culprit was pi-memory &rsquo;s session_shutdown handler. It sent one last LLM request to summarize the session, wrote its answer to the daily log, then ran qmd update . Pi awaits all shutdown handlers, correctly, so quitting waited for everything: pi.on("session_shutdown", async (event, ctx) => { const result = await…