Restored from origin/main (b4663fb): - .github/ workflows and issue templates - .gitignore (proper exclusions) - .opencode/agent/web_developer.md - AGENTS.md, BUILD.md, PROGRESS.md - dev-docs/ (9 architecture/implementation docs) - docs/screenshots/ (4 UI screenshots) - images/ (CodeNomad icons) - package-lock.json (dependency lockfile) - tasks/ (25+ project task files) Also restored original source files that were modified: - packages/ui/src/App.tsx - packages/ui/src/lib/logger.ts - packages/ui/src/stores/instances.ts - packages/server/src/server/routes/workspaces.ts - packages/server/src/workspaces/manager.ts - packages/server/src/workspaces/runtime.ts - packages/server/package.json Kept new additions: - Install-*.bat/.sh (enhanced installers) - Launch-*.bat/.sh (new launchers) - README.md (SEO optimized with GLM 4.7)
32 lines
823 B
Markdown
32 lines
823 B
Markdown
---
|
|
title: Image Clipboard
|
|
description: Support pasting images from the clipboard.
|
|
---
|
|
|
|
Implement Image Clipboard Support
|
|
|
|
---
|
|
|
|
### Detect Image Paste
|
|
|
|
Detect when image data is present in the system clipboard during a paste event.
|
|
|
|
Prioritize image data over text data if both are present.
|
|
|
|
---
|
|
|
|
### Create Image Attachment
|
|
|
|
Automatically create an image attachment from the pasted image data. Convert the image to a base64 encoded format for internal handling and submission.
|
|
|
|
Display the image attachment as a chip in the input area.
|
|
|
|
---
|
|
|
|
### Acceptance Criteria
|
|
|
|
- Pasting an image from the clipboard creates an image attachment chip.
|
|
- The image data is base64 encoded and associated with the attachment.
|
|
- The attachment chip has a suitable display name (e.g., `[Image #1]`).
|
|
- Users can clear the image attachment.
|