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-61ab6da9:大幅面模型已生成,但在嵌入可编辑工程时,整块网格被解压到内存,导致最后一步失败。
单个 3MF 和分块 ZIP 现在共用流式复制逻辑。嵌套 3MF 逐个使用临时文件处理,成功后原子替换;保留网格、材料配置、冻结的工程版本以及 ZIP 成员元数据,失败时保留原文件并清理临时文件。
Validation
python -m pytest tests/test_project_export_revision_unit.py tests/test_project_container_unit.py tests/test_project_container_properties.py tests/test_project_workflows_unit.py -q:50 项通过,覆盖单个 3MF、嵌套 ZIP、工程版本、ZIP 元数据和失败时原文件保全。python scripts/run_smoke_tests.py:通过;前端 lint 为 0 error、68 条既有 warning。git diff --check:通过。原始工单、用户图片及生成模型仅用于本地验证,没有加入提交。
AI assistance
Models and tools: GPT-6 系列,具体变体未提供(via Codex)。
What each model helped with: GPT-6 协助分析工单堆栈和原始模型包,实现流式工程嵌入,编写内存及原文件保全回归,执行验证并撰写本说明。
How the output was checked: Codex 实际执行了 Validation 中的测试、工单重放和逐字节比对,核对退出状态、内存测量及输出文件。没有将 AI 审阅当作运行验证。