diff options
| author | Clawd <ai@clawd.bot> | 2026-02-28 15:26:02 -0800 |
|---|---|---|
| committer | Clawd <ai@clawd.bot> | 2026-02-28 15:26:02 -0800 |
| commit | 519d6b850e07a0387511a8f024dc394250b1a241 (patch) | |
| tree | 5ee0a1bbbd7410f93a770e8129c88e29b5a5e5fb /renderer/src/App.tsx | |
| parent | bebbffa890c38f12f04b6fafad4c5c5e46e051a8 (diff) | |
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.
Diffstat (limited to 'renderer/src/App.tsx')
| -rw-r--r-- | renderer/src/App.tsx | 3 |
1 files changed, 3 insertions, 0 deletions
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() { | |||
| 250 | setMessages([]); | 250 | setMessages([]); |
| 251 | setDocumentContent(""); | 251 | setDocumentContent(""); |
| 252 | setOriginalContent(""); | 252 | setOriginalContent(""); |
| 253 | // Clear artifacts from previous sessions | ||
| 254 | await api.writeArtifact(selectedProject.path, "research.md", ""); | ||
| 255 | await api.writeArtifact(selectedProject.path, "plan.md", ""); | ||
| 253 | }; | 256 | }; |
| 254 | 257 | ||
| 255 | const handleDeleteProject = async (id: string) => { | 258 | const handleDeleteProject = async (id: string) => { |
