[feat] clipboard: Copy and paste content between OpenDirector and other apps
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 22/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- typescript
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- TypeScript
- Estrellas
- 119
- Forks
- 16
- Merge medio
- 16 h 13 min
- PR fusionados (30 d)
- 195
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de ThinkFlowLab/OpenDirector
-
area:provider
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
ThinkFlowLab/OpenDirector#477 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
area:ci
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
ThinkFlowLab/OpenDirector#411 ·
Los mantenedores suelen responder en 1 día
-
[bug] agent: 长素材名在对话气泡中溢出,遮挡正文与素材栏Posiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abiertoarea:agent
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
ThinkFlowLab/OpenDirector#348 ·
Los mantenedores suelen responder en 1 día
-
area:provider
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
ThinkFlowLab/OpenDirector#311 ·
Los mantenedores suelen responder en 1 día
-
area:desktop area:install help wanted
Dificultad 4/5 3-5 días Aptitud para principiantes 25/100
ThinkFlowLab/OpenDirector#475 ·
Los mantenedores suelen responder en 1 día
Todos los issues de ThinkFlowLab/OpenDirector
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
primer/primitives#1426 ·
-
Sign-in-only setup dialog describes API-key verificationPosiblemente ocupada @roboclaw-bot la tomó hoy. Abiertoclawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster no-stale P2
Dificultad 1/5 Menos de una hora Aptitud para principiantes 78/100
openclaw/openclaw#204323 · 1 comentario · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
virtue-initiative/virtue-initiative#953 ·
Los mantenedores suelen responder en 1 día
-
needs-area-label
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
fumicode/bublys-org#261 ·
Los mantenedores suelen responder en 12 días