134
|
f75d99baf6
|
fix(agent): repair the UUID check that made every detail replacement request 400
新增的批次接口把一个 UUID 正则写成了 8-4-4-12(少一组 -{4}),标准 UUID 是
8-4-4-4-12。结果是任何真实项目编号和请求编号都过不了校验:查询接口恒返 400
「项目编号无效」,提交接口恒返 400「任务编号或项目编号无效」,详情替换完全无法使用。
- 校验抽成 isDetailReplacementUuid 并修正为规范的 8-4-4-4-12,路由不再自带正则
- 回归测试覆盖真实线上项目编号、浏览器生成的请求编号,以及导致故障的 8-4-4-12 形状
- 增加源码守卫,防止该路由再次出现自带的错误 UUID 正则
- 前端在项目尚未保存时给出明确提示,而不是把空编号丢给接口
|
2026-09-27 19:14:56 +08:00 |
|
134
|
0907aaff67
|
fix(agent): make detail replacement results survive page and server restarts
详情替换原来把整批生图挂在浏览器保持的对话流上,切换标签页、断网或连接中断后
结果就再也回不来,前端还会继续播放按时间推算的 96% 假进度。
现在改为服务器端后台批次:提交时先落任务,再按参考图逐张生成并把每张结果写进
项目,页面刷新、切页或服务重启后都能按任务状态恢复,不再依赖前端连接。
- 新增 /api/agents/detail-replacement/batches(提交/查询、幂等去重、重试上限)
- 前端只在服务端确认批次后显示处理中,卡片显示排队/生成/完成/失败真实状态
- 去掉假进度动画;没有产品输入图时提交前直接拦截
- 服务重启后自动恢复未完成批次,长批次不再被通用 30 分钟清理误判
- 单张失败只落到该卡片并继续后续图片,已完成的图片不重复生成和扣费
- 详情替换默认模型由持续 404 的 gpt-image-2.5-flare 改回 gpt-image-2.5
|
2026-09-26 02:39:11 +08:00 |
|
Your Name
|
8757f76b1f
|
chore: rename agent UI to stylized
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
|
2026-04-11 19:48:45 +08:00 |
|
Your Name
|
8d2066a3bf
|
feat: expand agent workflow and project management
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
|
2026-03-19 18:33:42 +08:00 |
|
Your Name
|
ec988be30a
|
Update agent workflow and video task handling
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
|
2026-03-13 11:21:42 +08:00 |
|
Your Name
|
c2a0568148
|
Add managed tree categories for agents
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
|
2026-03-12 17:49:54 +08:00 |
|
Your Name
|
4b820f8ff4
|
Add canvas agent mode and management
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
|
2026-03-10 19:56:25 +08:00 |
|