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:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user