Skip to content

Agent Zero AI framework

disable resetChat on dashboard

3clyp50ae812f666064
diff --git a/webui/components/chat/input/bottom-actions.html b/webui/components/chat/input/bottom-actions.html
index 35c303ab1..0ec1bc460 100644
--- a/webui/components/chat/input/bottom-actions.html
+++ b/webui/components/chat/input/bottom-actions.html
@@ -25,7 +25,7 @@
<span x-text="$store.chatInput.paused ? 'Resume Agent' : 'Pause Agent'"></span>
</button>
- <button class="text-button" @click="$store.chats.resetChat()">
+ <button class="text-button" @click="$store.chats.resetChat()" :disabled="!$store.chats.selected">
<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 24 24" width="14" height="14">
<path d="M19.36 2.72l1.42 1.42-5.72 5.71c1.07 1.54 1.22 3.39.32 4.59L9.06 8.12c1.2-.9 3.05-.75 4.59.32l5.71-5.72M5.93 17.57c-2.01-2.01-3.24-4.41-3.58-6.65l4.88-2.09 7.44 7.44-2.09 4.88c-2.24-.34-4.64-1.57-6.65-3.58z"/>
</svg>
diff --git a/webui/components/sidebar/top-section/quick-actions.html b/webui/components/sidebar/top-section/quick-actions.html
index 822f10680..8e2f4c407 100644
--- a/webui/components/sidebar/top-section/quick-actions.html
+++ b/webui/components/sidebar/top-section/quick-actions.html
@@ -85,7 +85,7 @@
<span>Save Chat</span>
</button>
- <button class="dropdown-item" @click="$store.chats.resetChat(); dropdownOpen = false">
+ <button class="dropdown-item" @click="$store.chats.resetChat(); dropdownOpen = false" :disabled="!$store.chats.selected">
<span class="material-symbols-outlined">delete_sweep</span>
<span>Clear Chat</span>
</button>