summaryrefslogtreecommitdiffhomepage
path: root/packages/app/src/context/platform.tsx
diff options
context:
space:
mode:
authorAbdul Rahman ArM <[email protected]>2026-02-08 16:54:09 +0530
committerGitHub <[email protected]>2026-02-08 11:24:09 +0000
commitd5036cf01f673a2d0069e0daf811f396a9eeb582 (patch)
tree22d932530276c7094d73aaa561890eb5945b78d2 /packages/app/src/context/platform.tsx
parentd1ebe0767c264d395c8bc504c0957ccc3af90103 (diff)
downloadopencode-d5036cf01f673a2d0069e0daf811f396a9eeb582.tar.gz
opencode-d5036cf01f673a2d0069e0daf811f396a9eeb582.zip
fix(desktop): add native clipboard image paste and fix text paste (#12682)
Diffstat (limited to 'packages/app/src/context/platform.tsx')
-rw-r--r--packages/app/src/context/platform.tsx3
1 files changed, 3 insertions, 0 deletions
diff --git a/packages/app/src/context/platform.tsx b/packages/app/src/context/platform.tsx
index 127b9260b..3fca502ba 100644
--- a/packages/app/src/context/platform.tsx
+++ b/packages/app/src/context/platform.tsx
@@ -65,6 +65,9 @@ export type Platform = {
/** Check if an editor app exists (desktop only) */
checkAppExists?(appName: string): Promise<boolean>
+
+ /** Read image from clipboard (desktop only) */
+ readClipboardImage?(): Promise<File | null>
}
export const { use: usePlatform, provider: PlatformProvider } = createSimpleContext({