Repository navigation
Conversation
Publish the totals report through a temp file + replace so a mid-write OSError leaves any prior complete JSON intact. Co-authored-by: Cursor <cursoragent@cursor.com>
|
Tested on Apple M1 Max, macOS 27.2.1 arm64, Python 3.12.16: |
|
Independently checked This covers the macOS failure paths; native Windows sharing and retry behavior was not exercised. Synthetic inputs only. AI-assisted review. |
|
Tested
Same shape: the reverted run is an AttributeError on a helper the PR adds. Independent check (not the author). Run by an AI agent (DeepSeek V4.1 Flash) and re-run by the orchestrating session (Claude Code) before posting. |
Summary
tools/vertex_types.py--jsonthrough a temp file +replace_retryso a mid-write failure leaves any previous complete report (same preserve pattern as hashdict: stage --out so a write failure keeps the previous report #9063 / pe_inspect: stage JSON and markdown reports so a write failure keeps the previous file #9047 / fog_volumes: stage --out with replace_retry so a write failure keeps the previous report #9040).Claim: #8504 (comment)
Synthetic; no game files. AI-assisted (Cursor / Composer).
Test plan
python3 -I -m unittest discover -s tests -p 'test_vertex_types*.py'— 47 OK (1 skipped)Made with Cursor