]> acesimba.cloud Git - codebuddy-web.git/commit
支持终端粘贴文字与截图(未完成,待方案B重构)
authorCodebuddy <codebuddy@localhost>
Thu, 18 Jun 2026 07:58:56 +0000 (15:58 +0800)
committerCodebuddy <codebuddy@localhost>
Thu, 18 Jun 2026 07:58:56 +0000 (15:58 +0800)
commit51a1de4b0f971a9d764c4383cb1b1f19e374c757
tree61b6d1ec749558b2dc1e65f0a2a954b3c7e0ce3f
parent97663d4c7fa9e9ba1b73b9da3d359dc75ef91280
支持终端粘贴文字与截图(未完成,待方案B重构)

新增:
- backend: /api/upload-image 端点,接收 base64 图片存到 data/pastes/
- frontend: paste 事件检测图片/文字,上传后以 <image_local_path> 标签发 CLI
- frontend: 顶部栏 📋 粘贴按钮 + modal(多行 textarea 输入)
- frontend: extractPasteText/htmlToText(HTML 转 TSV/纯文本)
- .gitignore: 排除 data/pastes/

已知问题: 自定义 paste 监听与 xterm 内部冲突,文字粘贴失效。
下一步: 按方案 B 重构——xterm 区保留 TUI 输出,下方加独立 textarea 输入框。
.gitignore
backend/app.py
frontend/index.html