Repository navigation
fix(macos): release model verification buffers between chunks - #143
Merged
Merged
Conversation
Bound autoreleased Foundation file buffers during model verification and audio hashing. Add retained-memory regressions and record isolated startup measurements. Co-Authored-By: Codex <noreply@openai.com>
ekho
marked this pull request as ready for review
December 5, 2026 20:44
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
Model readiness checks retained whole files in the main thread's autorelease pool, leaving the idle app near 1 GiB. Drain temporary Foundation buffers after each chunk in model verification and audio hashing, while preserving full SHA256 and size checks.
Evidence
After: both retain less than 8 MiB; expected audio digest and rejection of corrupt weights remain verified.
docs/testing/2026-12-05-idle-memory.md.Merge Danger
Door: two-way
No persistent data or configuration migrations.
Blast Radius: macOS
File hashing and model verification only. Windows source is unchanged. Real-audio and Windows GUI acceptance were not run; common release CI still tests/builds both platforms.