Conversation
✅ Deploy Preview for char-cli-web canceled.
|
✅ Deploy Preview for hyprnote canceled.
|
| pub(super) const START_CONFIRMATION: Duration = Duration::from_millis(500); | ||
| pub(super) const STOP_GRACE: Duration = Duration::from_secs(3); |
There was a problem hiding this comment.
🚩 Significant behavioral change: stop events now delayed by 3 seconds
The old code used a 500ms debounce for both start and stop events (crates/detect/src/mic/macos.rs:41 in the deleted file). The new code introduces a 3-second STOP_GRACE at crates/detect/src/mic/macos/state.rs:6 before confirming a mic stop, plus a device state re-check. This means downstream consumers (e.g., UI indicators) will see a 3-second delay before being notified that the mic stopped. This is presumably intentional (to avoid false stop events during brief interruptions like device switching), but consumers relying on timely stop notifications should be aware of this latency increase.
Was this helpful? React with 👍 or 👎 to provide feedback.
No description provided.