[feat] clipboard: Copy and paste content between OpenDirector and other apps
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
- 難度
- 5/5
- 預估耗時
- 一週以上
- 新手友好度
- 22/100
- Issue 類型
- 功能
- 描述清晰度
- 基本清楚
- 活躍度
- 活躍
- 技術堆疊
- typescript
研究方向
Start by reading the linked roadmap and design context (#265, #262, #362) and the clipboard permissions PR #458, then locate the existing in-app canvas copy/paste handlers and the project asset service they call. Trace how an image node selection is represented on Web and in the packaged desktop build before adding system clipboard writes or reads. Done means the acceptance criteria are exercised in both directions between OpenDirector clients and external apps, with documented fallbacks where the browser cannot write video.
由索引模型根據 Issue 內容生成。
描述
Parent roadmap: #265.
Related: Canvas roadmap #262, desktop RFC #362, and clipboard permissions PR #458.
Goal and scope
Provide consistent, bidirectional copy and paste across OpenDirector Web, OpenDirector desktop, and compatible external apps. Use the platform's standard shortcuts in both directions. Paste into OpenDirector as editable project content where applicable, or into an external app as text, an image, or a file according to what the destination accepts.
Example scenario
In OpenDirector on Web or desktop, select an image node and press Ctrl+C (Cmd+C on macOS). Switch to an email draft, a Codex chat, or a WeChat conversation and press Ctrl+V (Cmd+V on macOS). The reported behavior is that the image does not appear. The expected behavior is that the selected image appears inline or as an attachment in a composer that accepts pasted images.
Proposed behavior
| Selection | Clipboard content | Example destination |
|---|---|---|
| Text in a chat reply or canvas text node | Plain text preserving Unicode and line breaks | TextEdit or Notepad |
| One image asset | Clipboard image data | Keynote or PowerPoint |
| One video asset | Video file data or a file reference, as supported by the client | Finder or File Explorer |
-
Preserve existing in-app canvas copy and paste. When an image node is selected, the standard Copy shortcut should make the image available to other apps while preserving in-app node paste. Standard text selection keeps the native copy shortcut.
-
Resolve media through the existing project asset service. Use browser clipboard formats on Web and platform clipboard support in the desktop app. Validate video paste in a compatible receiver. If the browser cannot write the video to the clipboard, explain the limitation and offer a download. Avoid buffering an entire large video in the renderer.
-
Report copy success only after the system clipboard write succeeds. Show actionable English and Chinese errors for unavailable media or clipboard failures.
-
Accept pasted text, images, and video files from external apps through the same canvas import and validation rules on Web and desktop. When copying between OpenDirector clients, preserve editable nodes and resolve their assets in the destination project.
Acceptance criteria
-
Test both directions between compatible external apps and each OpenDirector client, plus Web → desktop and desktop → Web. Use the same shortcuts and samples, and check equivalent pasted content at the same destination. Verify imported assets remain usable after reopening the destination project. Record format limitations and verify the documented fallback where clipboard transfer is unavailable.
-
From Web and desktop, select an image node and use the platform Copy shortcut. Paste into an email draft, Codex, and WeChat where the composer accepts images. Verify that the selected image appears inline or as an attachment. Record the tested OS, browser or desktop build, and receiving app.
-
In supported browsers and packaged macOS and Windows builds, paste copied Chinese and English text into a native editor and verify line breaks.
-
Paste a copied image into a compatible slide editor and a video into an app that accepts pasted video files. Verify the download fallback in browsers without video clipboard support. Open the pasted or downloaded video and verify it matches the selected asset.
-
Switch projects before pasting and verify the copied media is still usable. Exercise a large video and verify the app remains responsive.
-
Verify internal canvas copy and paste still works. Exercise missing media and failed clipboard writes in both UI languages.
- 主要語言
- TypeScript
- 星號
- 119
- 分支
- 16
- 平均合併
- 16 小時 13 分鐘
- 30 天內合併 PR
- 195
環境準備
這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
ThinkFlowLab/OpenDirector 的其他 Issue
-
area:provider
難度 2/5 1-3 小時 新手友好度 78/100
ThinkFlowLab/OpenDirector#477 · 1 則留言 ·
維護者通常 1 天內回覆
-
area:ci
難度 2/5 1-3 小時 新手友好度 76/100
ThinkFlowLab/OpenDirector#411 ·
維護者通常 1 天內回覆
-
[bug] agent: 长素材名在对话气泡中溢出,遮挡正文与素材栏可能已有人在做 關聯的 PR 仍在進行中或已合併。 未關閉area:agent
難度 2/5 1-3 小時 新手友好度 88/100
ThinkFlowLab/OpenDirector#348 ·
維護者通常 1 天內回覆
-
area:provider
難度 2/5 1-3 小時 新手友好度 72/100
ThinkFlowLab/OpenDirector#311 ·
維護者通常 1 天內回覆
-
area:desktop area:install help wanted
難度 4/5 3-5 天 新手友好度 25/100
ThinkFlowLab/OpenDirector#475 ·
維護者通常 1 天內回覆
查看 ThinkFlowLab/OpenDirector 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 72/100
primer/primitives#1426 ·
-
Sign-in-only setup dialog describes API-key verification可能已有人在做 @roboclaw-bot 今天認領。 未關閉clawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster no-stale P2
難度 1/5 1 小時以內 新手友好度 78/100
openclaw/openclaw#204323 · 1 則留言 · 1 個 reaction ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 65/100
virtue-initiative/virtue-initiative#953 ·
維護者通常 1 天內回覆
-
needs-area-label
難度 2/5 1-3 小時 新手友好度 68/100
維護者通常 1 天內回覆
-
難度 1/5 1 小時以內 新手友好度 88/100
fumicode/bublys-org#261 ·
維護者通常 12 天內回覆