fix: Z41 preserve product semantics during generation

Replace the silent generic-record fallback for product requests and expose semantic validation diagnostics before publishing.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
whm
2026-08-07 18:23:11 +08:00
parent 154f849f57
commit 9cdbd7f722
8 changed files with 411 additions and 68 deletions

View File

@@ -119,8 +119,7 @@ def wants_screenshot_layout(prompt: str, image_count: int, html_count: int = 0)
return False
if image_count > 0 or html_count > 0:
return True
if any(k in p for k in _SCREENSHOT_OPT_IN):
return True
# 只有“还原截图”等文字但没有实际截图/HTML不能启用截图专用 preset。
return False