diff --git a/app/components/messages/ChatItem.vue b/app/components/messages/ChatItem.vue index 553c296..79f4574 100644 --- a/app/components/messages/ChatItem.vue +++ b/app/components/messages/ChatItem.vue @@ -43,6 +43,16 @@ v-if="showDebug" class="mx-2 mb-2 p-2 rounded bg-gray-900 border border-gray-700 text-xs font-mono overflow-x-auto" > +
{{ JSON.stringify(chat, null, 2) }}
@@ -71,6 +81,14 @@ defineEmits<{
const showDebug = ref(false)
+const copyToClipboard = async (text: string) => {
+ try {
+ await navigator.clipboard.writeText(text)
+ } catch (err) {
+ console.error('Failed to copy:', err)
+ }
+}
+
const formatTime = (date: Date) => {
const d = new Date(date)
const now = new Date()
diff --git a/app/components/messages/MessageBubble.vue b/app/components/messages/MessageBubble.vue
index 25c643f..f8e5fa8 100644
--- a/app/components/messages/MessageBubble.vue
+++ b/app/components/messages/MessageBubble.vue
@@ -52,6 +52,16 @@
v-if="showDebug"
class="max-w-[90%] mt-1 p-2 rounded bg-gray-900 border border-gray-700 text-xs font-mono overflow-x-auto"
>
+ {{ JSON.stringify(message, null, 2) }}
@@ -77,6 +87,14 @@ const props = defineProps