From cdeb82e9ca0213960202447896493c8d18cb867b Mon Sep 17 00:00:00 2001 From: Adam <2363879+adamdotdevin@users.noreply.github.com> Date: Wed, 29 Oct 2025 14:08:52 -0500 Subject: wip: desktop work --- packages/desktop/src/pages/index.tsx | 134 +++++++++++------------------------ 1 file changed, 42 insertions(+), 92 deletions(-) (limited to 'packages/desktop/src') diff --git a/packages/desktop/src/pages/index.tsx b/packages/desktop/src/pages/index.tsx index ac6b6f9c8..341da2d95 100644 --- a/packages/desktop/src/pages/index.tsx +++ b/packages/desktop/src/pages/index.tsx @@ -670,98 +670,6 @@ export default function Page() { - {/* Response */} -
- - -
-

- - Hide steps - Show steps - -

- -
-
- -
- - {(assistantMessage) => { - const parts = createMemo(() => sync.data.part[assistantMessage.id]) - return - }} - -
-
-
- - {(_) => { - const lastMessageWithText = createMemo(() => - assistantMessages().findLast((m) => { - const parts = sync.data.part[m.id] - return parts?.find((p) => p.type === "text") - }), - ) - const lastMessageWithReasoning = createMemo(() => - assistantMessages().findLast((m) => { - const parts = sync.data.part[m.id] - return parts?.find((p) => p.type === "reasoning") - }), - ) - const lastMessageWithTool = createMemo(() => - assistantMessages().findLast((m) => { - const parts = sync.data.part[m.id] - return parts?.find( - (p) => p.type === "tool" && p.state.status === "completed", - ) - }), - ) - return ( -
- - - {(last) => { - const lastTextPart = createMemo(() => - sync.data.part[last().id].findLast((p) => p.type === "text"), - ) - return ( - - ) - }} - - - {(last) => { - const lastReasoningPart = createMemo(() => - sync.data.part[last().id].findLast( - (p) => p.type === "reasoning", - ), - ) - return ( - - ) - }} - - - - {(last) => { - const lastToolPart = createMemo(() => - sync.data.part[last().id].findLast( - (p) => p.type === "tool" && p.state.status === "completed", - ), - ) - return - }} - -
- ) - }} -
-
{/* Summary */}
@@ -817,6 +725,48 @@ export default function Page() {
+ {/* Response */} +
+ + +
+ + {(assistantMessage) => { + const parts = createMemo(() => sync.data.part[assistantMessage.id]) + return + }} + +
+
+ + + +
+
+ + Hide steps + Show steps + +
+ +
+
+ +
+ + {(assistantMessage) => { + const parts = createMemo( + () => sync.data.part[assistantMessage.id], + ) + return + }} + +
+
+
+
+
+
) }} -- cgit v1.2.3