From 836ebbf82838f695d747e77461cec72f45cfa6fb Mon Sep 17 00:00:00 2001 From: Ajax Davis Date: Thu, 8 Jan 2026 04:55:53 +1000 Subject: [PATCH] feat: add copy button to debug JSON view --- .../app/agents/[id]/chat/[chatId]/page.tsx | 28 +++++++++++++------ 1 file changed, 20 insertions(+), 8 deletions(-) diff --git a/apps/web/src/app/agents/[id]/chat/[chatId]/page.tsx b/apps/web/src/app/agents/[id]/chat/[chatId]/page.tsx index f10585e..80046b1 100644 --- a/apps/web/src/app/agents/[id]/chat/[chatId]/page.tsx +++ b/apps/web/src/app/agents/[id]/chat/[chatId]/page.tsx @@ -697,14 +697,26 @@ export default function PublicAgentChatPage(): React.ReactElement { {/* Debug JSON View */} {viewMode === 'debug' && (
-
-

- Raw Messages Array ({messages.length} messages) -

-

- Messages are ordered by createdAt. Each message includes role, content, and tool - call data. -

+
+
+

+ Raw Messages Array ({messages.length} messages) +

+

+ Messages are ordered by createdAt. Each message includes role, content, and tool + call data. +

+
+
                 {JSON.stringify(messages, null, 2)}