fix: restore desktop startup and align tool previews with SDK updates

Add reflect-metadata bootstrap so desktop sidecar no longer crashes on startup.
Update SDK v1.4 compatibility for model variant and diff payload handling.
Unify write/edit/apply patch expanded previews and hide write success output noise.
This commit is contained in:
Bohdan Triapitsyn
2026-04-12 00:40:49 +03:00
parent e6ac6badde
commit 844052e599
14 changed files with 222 additions and 189 deletions
+1 -1
View File
@@ -1,5 +1,4 @@
import type {
FileDiff,
Message,
Part,
PermissionRequest,
@@ -7,6 +6,7 @@ import type {
SessionStatus,
Todo,
} from "@opencode-ai/sdk/v2/client"
import type { FileDiff } from "./types"
type SessionCache = {
session_status: Record<string, SessionStatus | undefined>