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
fix(embedding): retry transient ONNX load failures with backoff
Live logs show recurring 'Protobuf parsing failed' and 'Unable to get
model file path or buffer' errors when multiple plugin processes (Desktop
sidecar + TUI + dashboard) initialize the embedding pipeline around the
same time. Verified on disk that model.onnx is intact (byte-identical to
HuggingFace, matching SHA256), so the failure mode is ephemeral — likely
onnxruntime-node mmap/page cache races between concurrent processes.
Adds a bounded retry loop with jittered backoff (up to 3 attempts, 300ms
× attempt + 0-200ms jitter) inside LocalEmbeddingProvider.initialize.
Only transient-looking failures trigger the retry; other errors surface
immediately. The first two attempts log at debug-ish level; only a final
failure after all retries still surfaces as 'embedding model failed to
load'.
0 commit comments