zyc 0eeefe88d6
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 13m54s
fix(generation): count upload + deduped asset images against 9-image cap
参考图 9 张上限改为「上传图 + 去重后的素材库引用图」合并计数,
同一张素材图 @ 多次按 1 张算。旧逻辑只算上传图、@ 素材完全不计入,
导致可 9 张上传 + 无限 @ 素材超标。

- assetMentions.ts: 抽出 collectAssetMentionStats,新增按 assetId 去重的 imageAssetIds
- inputBar.ts: addReferences / _validateAndAddImages 并入素材去重数卡 9 张
- PromptInput.tsx: insertAssetMention 补 image 分支,已 @ 过的同一素材放行
- views.py: 上限校验移到循环后用 image_n(seen_urls 已去重)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-04 14:12:32 +08:00
..
2026-04-04 12:45:29 +08:00
2026-04-04 12:46:26 +08:00