fix(product-suite): allow braces in business prompts
This commit is contained in:
+3
-1
@@ -3,7 +3,7 @@ id: T-687
|
||||
title: 商品套图提示词花括号兼容与生成错误反馈
|
||||
phase: 8
|
||||
deps: [T-637]
|
||||
status: TODO
|
||||
status: DONE
|
||||
created: 2026-07-22
|
||||
---
|
||||
|
||||
@@ -66,3 +66,5 @@ git diff --check
|
||||
## 执行记录
|
||||
|
||||
- 2026-07-22:任务创建。已确认当前落盘模板可正常渲染;问题来自 renderer 将替换后的业务文本 `{}` 误判为未替换模板变量,且生成入口没有把异常转换为 GUI 提示。
|
||||
- 2026-07-22:完成 renderer 修复:模板在替换前仍严格校验,替换值不再二次按变量解析,商品卖点中的 `{}` 原样保留。生成入口和计划核对路径捕获 `ProductSuitePromptError`;入口异常显示「无法生成商品套图」及中文状态栏提示,不创建 worker、job、价格查询或网关请求。
|
||||
- 2026-07-22:验证通过:`py -3.10 -m compileall app main.py`、`py -3.10 -m ruff check app tests main.py`、`py -3.10 -m unittest discover -s tests -p test_product_suite.py`(11 项)、`py -3.10 -m unittest discover -s tests -p test_product_suite_gui.py`(66 项)以及完整单测 `py -3.10 -m unittest discover -s tests`(668 项)。
|
||||
|
||||
Reference in New Issue
Block a user