221 Commits

Author SHA1 Message Date
Your Name
64dbbd8e6e fix: 智能自动模式使用通用思考动画
- 智能自动模式后端还在分析意图时,显示通用思考动画
- 避免在后端未确定生图前就显示生图占位图
- 等后端确定是生图模型后,自然切换到对应占位图

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-01-31 23:46:30 +08:00
Your Name
0901bc6329 feat: 支持历史多张图片的连续编辑
- 从历史对话中提取多张图片,支持多图融合编辑
- 收集同一条消息中的所有图片(用户上传或AI生成)
- 将所有历史图片注入到后续编辑请求中
- 日志输出图片数量便于调试

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-01-31 23:41:07 +08:00
Your Name
691e9862e7 feat: 自动使用历史图片进行连续对话编辑
- 用户没有发送新图片时,自动使用历史中最近的图片
- 支持连续对话场景:换颜色、调整、重做等
- 优先使用AI生成的图片,其次是用户上传的图片
- 让对话更自然,不需要每次都重新上传图片

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-01-31 23:37:23 +08:00
Your Name
760509100c fix: 保持用户消息原样显示,AI自然对话后再执行编辑
- 用户发送的消息不再被修改,保持原样显示
- 优化后的提示词只用于API调用,不影响用户消息
- AI会先用自然语言回复用户,再显示编辑结果

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-01-31 23:29:30 +08:00
Your Name
6d37542b0b fix: 智能自动模式 - 将 auto 传递给后端而非前端选择
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-01-31 23:17:53 +08:00
Your Name
8763e8d53f feat: 智能图片编辑系统 - 意图分析、提示词优化、模型路由
新增智能自动模式功能:
- smart-analyzer.ts: 智能意图分析器,识别抠图/换背景/增强等8种子意图
- prompt-optimizer.ts: 提示词优化器,将简单输入转为专业提示词
- model-router.ts: 智能模型路由器,根据意图选择最佳模型
- 修改route.ts集成新模块,替换原有关键词匹配逻辑

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-01-31 23:15:11 +08:00
Your Name
8d580ad3ab chore: sync local changes
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-01-31 22:39:49 +08:00
Your Name
81d2489649 refactor: clean up debug logs and simplify message handling
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-01-31 22:36:29 +08:00
Your Name
258c4ce173 fix: clean up timer logic to prevent memory leaks
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-01-31 22:33:55 +08:00
Your Name
eca231575d fix: show loading placeholder when streaming but last message is user message
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-01-31 22:29:00 +08:00
Your Name
ddd0006f1e fix: use replaceState instead of redirect to preserve message state
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-01-31 22:25:58 +08:00
Your Name
cd5669a8bf fix: redirect to /chat/id after image generation to ensure messages load correctly
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-01-31 22:20:08 +08:00
Your Name
2fdf27e611 debug: add logging to track message state during image generation
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-01-31 22:18:02 +08:00
Your Name
390ab1b935 fix: add timeout protection for loading placeholder and improve image content detection
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-01-31 22:17:18 +08:00
Your Name
2e62d17317 fix: preserve chat context after image generation by updating URL to /chat/id
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-01-31 22:11:29 +08:00
Your Name
9fcb170483 fix: reduce zoom step to 2% for even finer scaling control
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-01-31 22:05:26 +08:00
Your Name
486877b323 fix: reduce zoom step to 5% for finer image scaling control
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-01-31 22:02:59 +08:00
Your Name
960013d507 fix: move close button inside modal to prevent being hidden
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-01-31 21:58:48 +08:00
Your Name
51ba20be21 fix: use React Portal to render video modal outside nav element for proper centering
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-01-31 21:56:43 +08:00
Your Name
876386ecec fix: properly center video tutorial modal and fix featured image dialog overflow
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-01-31 21:51:35 +08:00
Your Name
f8b5de0aaf fix: remove dropdown title, improve video modal centering
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-01-31 21:48:10 +08:00
Your Name
9653f47560 fix: center video modal properly on screen
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-01-31 21:45:01 +08:00
Your Name
da3c6bb135 fix: allow empty coverUrl in tutorial videos API
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-01-31 21:42:55 +08:00
Your Name
077451de2f fix: use correct Next.js 16 config for body size limit
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-01-31 21:32:38 +08:00
Your Name
db070f8a37 fix: increase request body size limit to 500MB for video uploads
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-01-31 21:32:07 +08:00
Your Name
4e42b3e1c1 fix: use xhr.upload.onloadend to correctly show compressing stage
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-01-31 21:27:45 +08:00
Your Name
acc9407ec7 fix: improve video upload progress UI with better stage indicators
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-01-31 21:22:21 +08:00
Your Name
344c9bc956 feat: add real-time video upload progress bar with stage indicators
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-01-31 21:17:35 +08:00
Your Name
10fecf0892 feat: add custom high-performance video player optimized for slow networks
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-01-31 21:00:06 +08:00
Your Name
b99b3e5718 perf: optimize video playback and encoding for better web streaming experience
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-01-31 20:54:25 +08:00
Your Name
e861fc5203 feat: add multi-video tutorial support with dropdown menu and video management
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-01-31 20:48:14 +08:00
Your Name
024ec19c70 feat: add tutorial video button and ranking visibility toggle in navbar settings
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-01-31 20:37:29 +08:00
Your Name
c44c8cff6a feat: add toolbox1/toolbox2 name and enable settings in navbar config
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-01-31 11:11:58 +08:00
Your Name
a76e97eec0 fix: save provider and photoroomApiKey in RMBG config 2026-01-27 22:22:37 +08:00
Your Name
ab583c38ef feat: add PhotoRoom background removal support in RMBG settings 2026-01-27 22:15:29 +08:00
Your Name
48a8d2e1ff feat: rename button to batch add for clarity 2026-01-27 21:59:19 +08:00
Your Name
cfa61a426d fix: maintain processing status during auto-retry to show loading animation 2026-01-27 21:56:09 +08:00
Your Name
59bc3636e1 feat: rename scene fusion to detail replace, add auto-retry up to 10 times 2026-01-27 21:47:59 +08:00
Your Name
0d69e8d9fa fix: scene fusion retry now correctly handles streaming response and batch download works for all images 2026-01-27 21:40:46 +08:00
Your Name
ee4bb14736 feat: add banner settings to admin panel for configuring ad banner text and link 2026-01-26 22:26:44 +08:00
Your Name
0c4a2a455e fix: create new canvas instead of redirecting when canvas not found 2026-01-26 22:17:58 +08:00
Your Name
b936e58637 debug: add mousedown handler and z-index to button 2026-01-26 22:12:18 +08:00
Your Name
23e2dcf1b9 debug: make file list button very visible (red pulsing) 2026-01-26 22:07:52 +08:00
Your Name
76eac7a52a debug: add blue background and alert to file list button 2026-01-26 22:04:07 +08:00
Your Name
da523034c8 fix: use native button element for file list button 2026-01-26 21:55:47 +08:00
Your Name
259f45740e fix: ensure file list button click handler works properly 2026-01-26 21:52:28 +08:00
Your Name
acc28658d4 fix: use window.location for logo and canvas navigation 2026-01-26 21:46:31 +08:00
Your Name
50c3d7a182 fix: force full page navigation with window.location.href
- Use window.location.href for guaranteed navigation
- Prevent default and manually navigate to avoid App Router cache issues
- This ensures single-click navigation works reliably
2026-01-26 21:43:51 +08:00
Your Name
9aa1453f80 fix: use Link + router.refresh() for optimal navigation
Based on Next.js best practices research:
- Use <Link> component for prefetching and client-side navigation
- Add router.refresh() onClick to force server component re-render
- This preserves SPA experience while ensuring fresh data
- Fixes issue where pages don't reload after URL change
2026-01-26 21:38:06 +08:00
Your Name
8e82b0ea99 fix: use Button with router.push for reliable navigation
- Replace Link components with Button + router.push
- Add e.preventDefault() and e.stopPropagation() to prevent event issues
- Fix file list button click handler in CanvasChatPanel
- Ensures single click navigation works consistently
2026-01-26 21:31:58 +08:00