73 Commits

Author SHA1 Message Date
Your Name
18e2e09bb9 修复提示词重绘默认带入原始生成提示词 2026-02-09 00:37:44 +08:00
Your Name
1556826c1b 修复画布预览放大交互与触控板横向滑动翻页 2026-02-09 00:32:11 +08:00
Your Name
75993d98af 修复画布自动模式误用预览尺寸为分辨率 2026-02-08 23:06:53 +08:00
Your Name
3f61b27057 扩展Agent对话到全站生图模型并固定手动选模 2026-02-08 22:14:03 +08:00
Your Name
6cf0597227 优化画布交互并支持图片重命名同步 2026-02-08 11:52:37 +08:00
Your Name
800017b78c 放宽上传到50MB并取消分辨率限制 2026-02-08 11:38:03 +08:00
Your Name
2ea63d978f 优化自动模式上下文 2026-02-05 20:53:01 +08:00
Your Name
b33bdc208f fix: allow typing after canvas object tags
Insert a zero-width space after image and picked-object tags so the cursor can move past the tag and accept text.
2026-02-05 18:28:02 +08:00
Your Name
9fae58cfd3 fix: close image placeholder on generation end
Emit generation end markers for success/failure and scope marker handling to the latest request so placeholders stop on errors.
2026-02-03 20:45:47 +08:00
Your Name
35b190011a fix: align canvas loading placeholder with start marker
Only show the image loading placeholder after the generation-start marker and avoid overlapping with the thinking state.
2026-02-03 19:50:11 +08:00
Your Name
20efbbbb53 fix: trigger image placeholder after analysis
Send a dedicated generation-start marker when image generation begins and stop embedding markers in assistant text.
2026-02-03 19:45:49 +08:00
Your Name
b4c18bd554 feat: add image gen failover and loading placeholder
Enable model fallback for image generation and show the generation placeholder in the canvas chat.
2026-02-03 16:45:11 +08:00
Your Name
bb4f51d198 feat: improve canvas workflow and auto title
Hide internal prompts from users, auto-focus new images, avoid overlap, enable drag-and-drop upload, and fix canvas navigation reloads.
2026-02-03 16:33:51 +08:00
Your Name
bb1667881d fix: improve canvas image toolbar and tags
Add watermark removal, improve dark mode toolbar styling, and sync tag deletion with attachments.
2026-02-03 15:51:30 +08:00
Your Name
ff359fe03b feat: 将图片上传大小限制从 8MB 提升到 20MB 2026-02-03 10:23:34 +08:00
Your Name
691c626e3f fix: 修复同时上传多张图片时位置重叠的问题 2026-02-03 10:21:25 +08:00
Your Name
5f88eb44b3 fix: 修复预览弹窗中标注点相对于图片实际区域的定位 2026-02-02 13:16:47 +08:00
Your Name
3d4cbf4662 fix: 使用 Portal 渲染标签预览弹窗到 body,修复 backdrop-blur 导致 fixed 定位失效的问题 2026-02-02 13:10:11 +08:00
Your Name
d14f7f263e fix: 简化标签预览弹窗位置计算,确保在视口内显示 2026-02-02 12:58:42 +08:00
Your Name
a5319b5346 fix: 修复标签预览弹窗显示到聊天面板外的问题,使用容器边界限制位置 2026-02-02 12:49:13 +08:00
Your Name
1b5bd33b54 fix: 修复标签预览弹窗位置溢出视口的问题 2026-02-02 12:44:52 +08:00
Your Name
46806b6f82 fix: 提高标签预览弹窗层级到z-10001 2026-02-02 12:41:32 +08:00
Your Name
976e8de4c7 fix: 修复标签预览弹窗位置,固定显示在标签上方并防止超出边界 2026-02-02 12:36:12 +08:00
Your Name
84726009ff fix: 使用全局事件监听修复标签悬停预览 2026-02-02 12:31:07 +08:00
Your Name
2722a231bc fix: 修复标签悬停预览事件绑定 2026-02-02 12:24:44 +08:00
Your Name
09e6b070c7 feat: 标签悬停预览功能,显示图片全貌和标注位置 2026-02-02 12:22:08 +08:00
Your Name
d169a3e931 fix: 附件名称移除emoji,保留原图片URL用于AI多图融合 2026-02-02 12:18:15 +08:00
Your Name
7f67259c94 fix: 物品标签使用图片缩略图,移除emoji图标 2026-02-02 12:17:05 +08:00
Your Name
47afddfd73 feat: 添加物品拾取功能(MVP版本)
- 新增 ObjectPickerOverlay 组件,支持点击图片拾取物品
- 新增 /api/pick-object API,调用 Qwen-VL 识别物品
- Canvas Store 扩展拾取模式状态管理
- ImageNode 工具栏新增拾取按钮
- CanvasChatPanel 集成物品标签,发送时自动构建精准prompt
- 图片压缩至 600px 以内加速 AI 分析
- 物品名称限制 8 字,位置固定 4 字标准词库
2026-02-02 11:50:30 +08:00
Your Name
3fc00270c4 fix: 修复删除图片标签后无法重新添加的问题
- 改用 URL 而不是索引来删除附件,更可靠
- 优化 useEffect 中的附件去重逻辑
- 添加调试日志便于排查问题
2026-02-02 11:27:53 +08:00
Your Name
d7c0e66c3e feat: 画布图片按原始比例 1:1 显示
- 图片使用 object-contain 保持原始比例,不再裁剪
- 添加 getImageDimensions 函数获取图片原始尺寸
- 图片节点大小根据原始尺寸动态设置(最大 500px,最小 150px)
- 图片间距动态调整,避免重叠
2026-02-02 10:57:42 +08:00
Your Name
52867404f7 feat: 画布图片添加到对话框改为手动触发
- 在图片工具栏添加"添加到对话"按钮
- 移除选中图片时自动添加标签的逻辑
- 通过 canvas store 的 pendingChatAttachments 实现跨组件通信
- 用户点击按钮后才会将图片添加到对话框,避免标签越来越多
2026-02-02 10:54:03 +08:00
Your Name
ba99ad212e fix: 删除聊天框图片标签时不再删除画布中的图片
- 修改全局键盘事件处理,增加对 contentEditable 元素的检测
- 在删除图片标签时阻止事件冒泡,防止触发画布的删除操作
2026-02-02 10:42:15 +08:00
Your Name
51196ea0dd feat: 添加无限画布设置(启用/禁用、默认模型) 2026-02-01 22:41:42 +08:00
Your Name
c8e565d016 fix: 修复发送按钮被挤出输入框的布局问题 2026-02-01 22:24:49 +08:00
Your Name
a4de05925a feat: 添加新建画布按钮功能 2026-02-01 22:08:05 +08:00
Your Name
2c8bcd14cd fix: 用户消息按parts原始顺序渲染图片标签和文字 2026-02-01 19:27:05 +08:00
Your Name
323646f1d4 feat: 用户消息显示图片标签样式,隐藏标注提示前缀 2026-02-01 19:00:51 +08:00
Your Name
2e6f9d52bb fix: 发送后清空选中状态和输入框标签
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-01 18:13:16 +08:00
Your Name
7d3f97e972 fix: 发送消息后清空contenteditable内容
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-01 17:43:27 +08:00
Your Name
923a2288da feat: 使用contenteditable实现图片标签和文字混合输入
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-01 17:28:27 +08:00
Your Name
de63528cc1 style: 优化输入框布局,图片标签在上方
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-01 17:24:34 +08:00
Your Name
e5524fbaf5 fix: 图片标签和文本输入在同一行
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-01 17:21:21 +08:00
Your Name
a0abd6959c style: 输入框内显示图片标签
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-01 17:18:11 +08:00
Your Name
59a81f3c0e feat: 画布图片节点添加图片标注功能
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-01 17:12:30 +08:00
Your Name
94640002d0 fix: 多图支持和画布自动命名模型ID映射
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-01 16:58:27 +08:00
Your Name
96e4c8ebe0 fix: 画布聊天面板过滤空消息
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-01 16:48:40 +08:00
Your Name
ddf49cb329 feat: 画布聊天自动使用最近图片
当用户发送文字请求但没有附带图片时,自动按以下优先级获取图片:
1. 画布中选中的图片
2. 画布中最近添加的图片
3. 历史对话中的图片

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-01 16:07:34 +08:00
Your Name
2524ec551b fix: 修复画布图片重复添加和工具栏位置问题
1. 首次加载时不将历史消息中的图片添加到画布(避免重复)
2. 检查画布中是否已存在相同 URL 的图片
3. 工具栏位置在渲染时实时计算(跟随画布平移缩放)

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-01 15:35:09 +08:00
Your Name
049795e264 feat: 画布聊天支持智能自动模式
1. 添加「智能自动」模型选项(默认选中)
2. 使用 qwen3-vl 先对话理解需求、优化提示词
3. 然后自动调用最佳生图模型生成图片
4. 支持历史图片上下文自动关联

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-01 15:17:18 +08:00