From 519d6b850e07a0387511a8f024dc394250b1a241 Mon Sep 17 00:00:00 2001
From: Clawd <ai@clawd.bot>
Date: Sat, 28 Feb 2026 15:26:02 -0800
Subject: Clear artifacts when creating new session

Each new session now starts with empty research.md and plan.md files,
preventing stale content from previous sessions appearing.
---
 renderer/src/App.tsx | 3 +++
 1 file changed, 3 insertions(+)

(limited to 'renderer/src/App.tsx')

diff --git a/renderer/src/App.tsx b/renderer/src/App.tsx
index 5ca7a9b..966b15c 100644
--- a/renderer/src/App.tsx
+++ b/renderer/src/App.tsx
@@ -250,6 +250,9 @@ export function App() {
     setMessages([]);
     setDocumentContent("");
     setOriginalContent("");
+    // Clear artifacts from previous sessions
+    await api.writeArtifact(selectedProject.path, "research.md", "");
+    await api.writeArtifact(selectedProject.path, "plan.md", "");
   };
 
   const handleDeleteProject = async (id: string) => {
-- 
cgit v1.2.3

