Files
Genarrative/server-rs/crates
lhk229 b8c2efaf24 抠图背景色只作内部 screenColorHex 元数据,不再暴露进用户可见 fields
apply_editor_screen_background_decision_to_generation_inputs 之前会往
generationInputs.fields 追加「抠图背景色」条目,把内部自动决策/兜底细节
暴露给用户,违反「用户可见输入快照不记录抠图背景色/抠图模型」的产品契约(P2)。

- 去掉 fields 注入,只保留顶层内部可追踪元数据 screenColorHex(不进用户快照)。
- 删除因此变成死代码的 format_editor_screen_background_decision_input 及其 import。
- 重写两个单测:断言 fields 不被注入/不被修改,只写 screenColorHex。

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-09 03:52:43 +00:00
..
2026-06-11 23:06:41 +08:00
1
2026-05-10 13:18:46 +08:00