diff options
| author | Abdul Rahman ArM <[email protected]> | 2026-02-08 16:54:09 +0530 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-02-08 11:24:09 +0000 |
| commit | d5036cf01f673a2d0069e0daf811f396a9eeb582 (patch) | |
| tree | 22d932530276c7094d73aaa561890eb5945b78d2 /packages/app/src/context/platform.tsx | |
| parent | d1ebe0767c264d395c8bc504c0957ccc3af90103 (diff) | |
| download | opencode-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.tsx | 3 |
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({ |
