diff --git a/frontend/src/features/command/CommandBox.vue b/frontend/src/features/command/CommandBox.vue index 1a9adff1..86de3c3a 100644 --- a/frontend/src/features/command/CommandBox.vue +++ b/frontend/src/features/command/CommandBox.vue @@ -10,7 +10,7 @@ Snooze Resolve @@ -45,7 +45,6 @@ :data-index="index" @select="handleApplyMacro(macro)" class="px-3 py-2 rounded-md cursor-pointer transition-all duration-200 hover:bg-primary/10 hover:text-primary" - :class="{ 'bg-primary/5 text-primary': selectedMacroIndex === index }" >
@@ -219,7 +218,9 @@ watch([Meta_K, Ctrl_K], ([mac, win]) => { const highlightedMacro = ref(null) function handleApplyMacro(macro) { - conversationStore.setMacro(macro) + // Create a deep copy. + const plainMacro = JSON.parse(JSON.stringify(macro)) + conversationStore.setMacro(plainMacro) handleOpenChange() }