修复游戏场景后端契约旁路
Project CI / Backend tests (pull_request) Failing after 10s
Project CI / Repository checks (pull_request) Failing after 10s
Project CI / Frontend tests (pull_request) Successful in 3m2s
Project CI / Native shell tests (pull_request) Successful in 12m32s

阻止通用图片接口绕过场景专用合同

规范场景任务标题与用户可见摘要

修复空白场景素材名称回退行为

补充场景接口和任务投影回归测试

同步场景技术方案与排障约定
This commit is contained in:
2026-08-06 13:44:16 +08:00
parent 0c05faeac3
commit 447c23840c
5 changed files with 232 additions and 8 deletions
@@ -83,7 +83,7 @@ assetLabel?
canvasCompletion?
```
请求不接受前端组装后的完整 `prompt`。本期不修改 `/api/external/v1`
请求不接受前端组装后的完整 `prompt`通用 `/api/editor/images/generations` 也必须拒绝 `kind = scene``assetKind = scene`,防止调用方绕过结构化字段校验和后端 Prompt 组装。本期不修改 `/api/external/v1`
完整 Provider Prompt 仍只能由后端生成。
@@ -121,6 +121,8 @@ prompt = 后端完整 Prompt
随后复用 `enqueue_editor_image_generation_for_owner`,队列类型继续是 `editor_image_generation`Worker 继续执行 `generate_editor_image_for_owner`
队列标题固定为“图片画布生成游戏场景”。任务摘要只展示 `generationInputs.fields` 中的“画面内容”,不得把队列 payload 里的后端完整 Prompt 暴露到任务侧栏;历史错误摘要在投影刷新时按同一规则重新派生。`assetLabel` 省略、空字符串或纯空白时统一使用“游戏场景”,不能退回完整 Prompt 作为素材名称。
计费规则:
- 前端展示价继续读取 `/api/editor/generation-pricing`