diff options
| author | Adam <[email protected]> | 2025-12-02 06:50:16 -0600 |
|---|---|---|
| committer | Adam <[email protected]> | 2025-12-02 06:50:21 -0600 |
| commit | c0a35141e6b70eed1a9ba576fe43b7f7d690b968 (patch) | |
| tree | 50d3f50af029076faa3f5d4a5d9a9acb752e6b6e /packages/desktop/src | |
| parent | 221bb64aebda8263ea2ce48c1a1dc1f36ac83857 (diff) | |
| download | opencode-c0a35141e6b70eed1a9ba576fe43b7f7d690b968.tar.gz opencode-c0a35141e6b70eed1a9ba576fe43b7f7d690b968.zip | |
feat: better code and diff rendering performance
Diffstat (limited to 'packages/desktop/src')
| -rw-r--r-- | packages/desktop/src/pages/session.tsx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/packages/desktop/src/pages/session.tsx b/packages/desktop/src/pages/session.tsx index 281b6765a..ddc2a60c5 100644 --- a/packages/desktop/src/pages/session.tsx +++ b/packages/desktop/src/pages/session.tsx @@ -30,6 +30,7 @@ import { useSync } from "@/context/sync" import { useSession } from "@/context/session" import { useLayout } from "@/context/layout" import { getDirectory, getFilename } from "@opencode-ai/util/path" +import { Diff } from "@opencode-ai/ui/diff" export default function Page() { const layout = useLayout() @@ -357,6 +358,7 @@ export default function Page() { content: "pb-20", container: "w-full " + (wide() ? "max-w-146 mx-auto px-6" : "pr-6 pl-18"), }} + diffComponent={Diff} /> </div> </Match> @@ -405,6 +407,7 @@ export default function Page() { container: "px-6", }} diffs={session.diffs()} + diffComponent={Diff} actions={ <Tooltip value="Open in tab"> <IconButton @@ -436,6 +439,7 @@ export default function Page() { container: "px-6", }} diffs={session.diffs()} + diffComponent={Diff} split /> </div> |
