GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat: better code and diff perf · awakecoding/opencode@9363c15

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • bun.lock
  • package.json
  • packages
    • desktop/src
      • DesktopInterface.tsx
      • context
        • local.tsx
        • session.tsx
      • pages
        • directory-layout.tsx
        • home.tsx
        • layout.tsx
        • session.tsx
      • utils
        • encode.ts
        • index.ts
    • enterprise/src/routes/share
      • [shareID].tsx
    • ui/src
      • components
        • code.tsx
        • diff.tsx
        • session-review.tsx
        • session-turn.tsx
      • pierre
        • index.ts
        • worker.ts
    • util/src
      • encode.ts
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎bun.lock‎

Copy file name to clipboardExpand all lines: bun.lock
+4-2Lines changed: 4 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Collapse file

‎package.json‎

Copy file name to clipboardExpand all lines: package.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"@tsconfig/bun": "1.0.9",
3131
"@cloudflare/workers-types": "4.20251008.0",
3232
"@openauthjs/openauth": "0.0.0-20250322224806",
33-
"@pierre/precision-diffs": "0.6.0-beta.3",
33+
"@pierre/precision-diffs": "0.6.0-beta.10",
3434
"@tailwindcss/vite": "4.1.11",
3535
"diff": "8.0.2",
3636
"ai": "5.0.97",
Collapse file

‎packages/desktop/src/DesktopInterface.tsx‎

Copy file name to clipboardExpand all lines: packages/desktop/src/DesktopInterface.tsx
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import Session from "@/pages/session"
1313
import { LayoutProvider } from "./context/layout"
1414
import { GlobalSDKProvider } from "./context/global-sdk"
1515
import { SessionProvider } from "./context/session"
16-
import { base64Encode } from "./utils"
16+
import { base64Encode } from "@opencode-ai/util/encode"
1717
import { createMemo, Show } from "solid-js"
1818

1919
const host = import.meta.env.VITE_OPENCODE_SERVER_HOST ?? "127.0.0.1"
Collapse file

‎packages/desktop/src/context/local.tsx‎

Copy file name to clipboardExpand all lines: packages/desktop/src/context/local.tsx
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import type { FileContent, FileNode, Model, Provider, File as FileStatus } from
55
import { createSimpleContext } from "@opencode-ai/ui/context"
66
import { useSDK } from "./sdk"
77
import { useSync } from "./sync"
8-
import { base64Encode } from "@/utils"
8+
import { base64Encode } from "@opencode-ai/util/encode"
99

1010
export type LocalFile = FileNode &
1111
Partial<{
Collapse file

‎packages/desktop/src/context/session.tsx‎

Copy file name to clipboardExpand all lines: packages/desktop/src/context/session.tsx
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { TextSelection } from "./local"
77
import { pipe, sumBy } from "remeda"
88
import { AssistantMessage, UserMessage } from "@opencode-ai/sdk/v2"
99
import { useParams } from "@solidjs/router"
10-
import { base64Encode } from "@/utils"
10+
import { base64Encode } from "@opencode-ai/util/encode"
1111
import { useSDK } from "./sdk"
1212

1313
export type LocalPTY = {
Collapse file

‎packages/desktop/src/pages/directory-layout.tsx‎

Copy file name to clipboardExpand all lines: packages/desktop/src/pages/directory-layout.tsx
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { SDKProvider } from "@/context/sdk"
44
import { SyncProvider, useSync } from "@/context/sync"
55
import { LocalProvider } from "@/context/local"
66
import { useGlobalSync } from "@/context/global-sync"
7-
import { base64Decode } from "@/utils"
7+
import { base64Decode } from "@opencode-ai/util/encode"
88
import { DataProvider } from "@opencode-ai/ui/context"
99
import { iife } from "@opencode-ai/util/iife"
1010

Collapse file

‎packages/desktop/src/pages/home.tsx‎

Copy file name to clipboardExpand all lines: packages/desktop/src/pages/home.tsx
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { useGlobalSync } from "@/context/global-sync"
2-
import { base64Encode } from "@/utils"
2+
import { base64Encode } from "@opencode-ai/util/encode"
33
import { For } from "solid-js"
44
import { A } from "@solidjs/router"
55
import { Button } from "@opencode-ai/ui/button"
Collapse file

‎packages/desktop/src/pages/layout.tsx‎

Copy file name to clipboardExpand all lines: packages/desktop/src/pages/layout.tsx
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { DateTime } from "luxon"
33
import { A, useNavigate, useParams } from "@solidjs/router"
44
import { useLayout } from "@/context/layout"
55
import { useGlobalSync } from "@/context/global-sync"
6-
import { base64Decode, base64Encode } from "@/utils"
6+
import { base64Decode, base64Encode } from "@opencode-ai/util/encode"
77
import { Mark } from "@opencode-ai/ui/logo"
88
import { Button } from "@opencode-ai/ui/button"
99
import { Icon } from "@opencode-ai/ui/icon"
Collapse file

‎packages/desktop/src/pages/session.tsx‎

Copy file name to clipboardExpand all lines: packages/desktop/src/pages/session.tsx
+6-1Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ import { useSession } from "@/context/session"
3131
import { useLayout } from "@/context/layout"
3232
import { getDirectory, getFilename } from "@opencode-ai/util/path"
3333
import { Terminal } from "@/components/terminal"
34+
import { checksum } from "@opencode-ai/util/encode"
3435

3536
export default function Page() {
3637
const layout = useLayout()
@@ -489,7 +490,11 @@ export default function Page() {
489490
<Match when={file()}>
490491
{(f) => (
491492
<Code
492-
file={{ name: f().path, contents: f().content?.content ?? "" }}
493+
file={{
494+
name: f().path,
495+
contents: f().content?.content ?? "",
496+
cacheKey: checksum(f().content?.content ?? ""),
497+
}}
493498
overflow="scroll"
494499
class="pb-40"
495500
/>
Collapse file

‎packages/desktop/src/utils/encode.ts‎

Copy file name to clipboardExpand all lines: packages/desktop/src/utils/encode.ts
-7Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.