You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
download_hf_file writes model files directly to final path using std::fs::write. If the process crashes or is interrupted during write, a partial/corrupt file remains on disk.
On next run, the file exists check passes, so it won't re-download β but the corrupt file causes ONNX loading to fail with confusing errors.
Affected Code
crates/uteke-core/src/embed/engine.rs line 155
Fix
Write to a temporary file (e.g., model_q4.onnx.tmp) and rename atomically after successful write. On startup, delete any leftover .tmp files.
Activity
release: v0.0.11 β audit fixes from Cora scan (#221-#231)
ajianaz commentedon Jun 7, 2026
Fixed in v0.0.11 (PR #234)
release: v0.0.11 β audit fixes from Cora scan (#221-#231)