fix(core): clean up startup timeout task#2407
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThe PR parameterizes JSON-RPC readiness polling with named constants, refactors the startup timeout handler to capture detailed diagnostics (readiness signal, port status, task state) before cleanup, and adds a test validating that timeout cleanup clears the task slot and cancels the shutdown token. ChangesStartup timeout and readiness polling refactor
🎯 3 (Moderate) | ⏱️ ~25 minutes
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
Context
This targets the local embedded core startup timeout path behind errors like
core process did not become ready(for example #2397) and should also make related CI flakes easier to diagnose.Validation
cargo fmt --manifest-path app/src-tauri/Cargo.toml -p OpenHuman --checkgit diff --check -- app/src-tauri/src/core_process.rs app/src-tauri/src/core_process_tests.rsGGML_NATIVE=OFF cargo test --manifest-path app/src-tauri/Cargo.toml startup_timeout_cleanup_aborts_task_and_clears_slot --libwhisper-rs-syscould not findclang.dll/libclang.dll; the error asks to setLIBCLANG_PATH.Maintainer edits are enabled.
Summary by CodeRabbit
Release Notes
Bug Fixes
Tests