Repository navigation
Fix speech input test native VAD crash - #686
Conversation
Avoid loading the unused native Silero VAD during tray speech input startup so the Record test path no longer enters the native ONNX dependency before microphone capture. Keep the existing managed energy VAD behavior in AudioPipeline and add a source contract test. Co-authored-by: Copilot <[email protected]>
|
Codex review: needs maintainer review before merge. Reviewed June 4, 2026, 12:25 PM ET / 16:25 UTC. Summary Reproducibility: yes. for source-level review: the linked crash path starts speech input, and current main enters native Silero VAD loading before capture. I did not run the Windows crash locally in this read-only Linux review. Review metrics: 1 noteworthy metric.
Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Next step before merge
Security Review detailsBest possible solution: Land the narrow removal of native VAD startup for speech input while preserving the existing managed energy VAD behavior and required tray validation. Do we have a high-confidence way to reproduce the issue? Yes for source-level review: the linked crash path starts speech input, and current main enters native Silero VAD loading before capture. I did not run the Windows crash locally in this read-only Linux review. Is this the best way to solve the issue? Yes; removing the unused native detector from startup is the narrowest maintainable fix because AGENTS.md: found and applied where relevant. Codex review notes: model gpt-5.5, reasoning high; reviewed against 85445c78066b. Label changesLabel changes:
Label justifications:
Evidence reviewedWhat I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
|
Screen.Recording.2026-06-04.120159.mp4 |
Resolves conflicts between PR openclaw#624 (localize remaining tray strings) and the PR openclaw#558 / PR openclaw#597 / openclaw#686 localization work landed in master. Conflict resolutions - 6 XAML files (AgentEventsPage, ConnectionPage, CronPage, SandboxPage, SessionsPage, HubWindow): took master versions - CronPage.xaml.cs: master + re-applied 2 openclaw#624 hunks (JobCompletedInfoBar, ShowDisconnected) - 5 Resources.resw files: reset to master and re-injected 80 unique openclaw#624 keys via text injection so XML entities (") are preserved verbatim - LocalizationValidationTests.cs: pruned 17 obsolete and 7 over-deferred entries from InvariantOrDeferredResourceKeys Regression caught by adversarial review - AgentEventsPage / SkillsPage runtime code overrides XAML defaults with LocalizationHelper.GetString / Format calls. The 7 corresponding keys were seeded English-only across all locales so fr/nl/zh users would have seen English status badges and skill counters at runtime - Translated those 7 keys in fr-fr, nl-nl, zh-cn, zh-tw using the existing XAML translations as canonical source (28 strings total) - nl-nl AgentEventsPage_Status_Offline = "Niet verbonden" (matches the Status == Connected runtime check) so the all-or-none parity test passes - Stripped UTF-8 BOM from nl-nl/Resources.resw introduced by the rewrite so all 5 locales share the same encoding Validation - ./build.ps1 clean - OpenClaw.Shared.Tests: 2045 passed / 29 skipped - OpenClaw.Tray.Tests: 936 passed / 0 failed - Key parity: 1885 entries per locale across all 5 locales Co-authored-by: Copilot <[email protected]>
Summary
Fixes #683.
This removes the unused native Silero/ONNX VAD startup path from the tray speech input flow. The live
AudioPipelinealready uses managed RMS/energy VAD, soVoiceServiceno longer downloads/loads the native VAD model before starting microphone capture.AudioPipelinekeeps the same 16 kHz / 512-sample chunk behavior through local constants instead of referencingVoiceActivityDetector.Repro validation
A/B validation was performed with the old runtime conditions from the crash report:
msvcp140.dll14.29.30142.1 reproduced the Speech Input Test crash.fix-683-speech-input-crashRelease x64 portable using the same old app-localmsvcp140.dll14.29.30142.1 and copied gateway/model state did not crash on the same Speech Input Test flow.This validates the fix under the reproduced crash conditions, though it does not identify the exact native faulting instruction.
Tests
./build.ps1dotnet test ./tests/OpenClaw.Shared.Tests/OpenClaw.Shared.Tests.csproj --no-restore— 2045 passed, 29 skippeddotnet test ./tests/OpenClaw.Tray.Tests/OpenClaw.Tray.Tests.csproj --no-restore— 936 passedReview
Ran a Hanselman-style dual-model review. No blocking findings. The only shared note was low-severity source-contract test fragility, consistent with existing WinUI contract-test patterns in this repo.
Evidence
Video proof: attached in PR comment