Repository navigation
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
修复动态耗材模式下,手动改过配方的区域重新选中后无法继续编辑的问题(LUM-202611-b6d655ed)。选区编号会随操作变化,原实现按旧编号查找手动配方,导致
/region-recipe返回 409。现在用与配方采样相同的像素定位已保存的覆盖掩码,按最近一次编辑优先读取实际配方。保留真实耗材层与补齐底层的区别;重叠编辑、重新选区及撤销/重做均能读回正确层数。复用现有掩码解析逻辑,无需重新计算预览。
Validation
python -m pytest tests/test_dynamic_material_editing_unit.py tests/test_dynamic_material_lifecycle_integration_unit.py tests/test_dynamic_svg_edit_lifecycle_integration_unit.py tests/test_dynamic_material_api_contract_unit.py tests/test_converter_replace_integration_unit.py tests/test_selection_recipe_regression.py tests/test_editor_selection_unit.py tests/test_api_errors_unit.py tests/test_structured_logging_unit.py tests/test_logger_unit.py -q:151 passed。python scripts/run_smoke_tests.py:通过;前端 lint 无错误。python scripts/log_quality_check.py --mode fast --workflow preview,generate,replace_bw:通过。AI assistance
Models and tools: GPT-6 family(具体变体不可用),通过 Codex。
What each model helped with: 分析原始工单和保存的会话,复现选区编号与手动配方关联丢失,实现修复、回归测试和 API 重放脚本,撰写本 PR。
How the output was checked: Codex 执行了上述原素材 API 重放、像素配方比对、测试和日志检查;详见 Validation。未将用户原图、耗材或日志提交到仓库。