From 46ad4567188906b0d8e2cf2a67d6add6ec333a61 Mon Sep 17 00:00:00 2001 From: Adam <2363879+adamdotdevin@users.noreply.github.com> Date: Tue, 28 Oct 2025 15:39:34 -0500 Subject: wip: desktop work --- packages/desktop/src/components/assistant-message.tsx | 17 +++++++++++++---- packages/ui/src/components/diff.tsx | 9 ++++++++- 2 files changed, 21 insertions(+), 5 deletions(-) (limited to 'packages') diff --git a/packages/desktop/src/components/assistant-message.tsx b/packages/desktop/src/components/assistant-message.tsx index 224e3d390..90f6e70fe 100644 --- a/packages/desktop/src/components/assistant-message.tsx +++ b/packages/desktop/src/components/assistant-message.tsx @@ -2,7 +2,7 @@ import type { Part, AssistantMessage, ReasoningPart, TextPart, ToolPart } from " import { children, Component, createMemo, For, Match, Show, Switch, type JSX } from "solid-js" import { Dynamic } from "solid-js/web" import { Markdown } from "./markdown" -import { Checkbox, Collapsible, Icon, IconProps } from "@opencode-ai/ui" +import { Checkbox, Collapsible, Diff, Icon, IconProps } from "@opencode-ai/ui" import { getDirectory, getFilename } from "@/utils" import type { Tool } from "opencode/tool/tool" import type { ReadTool } from "opencode/tool/read" @@ -357,12 +357,21 @@ ToolRegistry.register({ {getFilename(props.input.filePath ?? "")} -
{/* */}
+
+ + + +
} > - -
{props.output}
+ +
+ +
) diff --git a/packages/ui/src/components/diff.tsx b/packages/ui/src/components/diff.tsx index 88215bcb0..3eeab6d6f 100644 --- a/packages/ui/src/components/diff.tsx +++ b/packages/ui/src/components/diff.tsx @@ -24,7 +24,13 @@ export type DiffProps = Omit, "themes"> & { export function Diff(props: DiffProps) { let container!: HTMLDivElement - const [local, others] = splitProps(props, ["before", "after", "class", "classList", "annotations"]) + const [local, others] = splitProps(props, [ + "before", + "after", + "class", + "classList", + "annotations", + ]) // const lineAnnotations: DiffLineAnnotation[] = [ // { @@ -165,6 +171,7 @@ export function Diff(props: DiffProps) { "--pjs-tab-size": 4, "--pjs-font-features": "var(--font-family-mono--font-feature-settings)", "--pjs-header-font-family": "var(--font-family-sans)", + "--pjs-gap-block": 0, }} ref={container} /> -- cgit v1.2.3