feat(keyboard): improve typing, voice flow, and polish reliability
Reduce extension memory pressure and delivery races while adding richer candidates, tactile feedback, and safer two-level creative polishing.
This commit is contained in:
@@ -153,6 +153,17 @@ final class FlowHandoffPolicyTests: XCTestCase {
|
||||
XCTAssertEqual(action, .waitForHostReady(recordWhenReady: true))
|
||||
}
|
||||
|
||||
func testMicPressOnboardingIncompleteIgnores() {
|
||||
let action = FlowHandoffPolicy.micPressAction(
|
||||
availability: .unavailable(.onboardingIncomplete),
|
||||
sessionActive: false,
|
||||
hostReachable: false,
|
||||
hostStale: false,
|
||||
withinReadyGrace: false
|
||||
)
|
||||
XCTAssertEqual(action, .ignore)
|
||||
}
|
||||
|
||||
func testMicPressHostNotReadyWhenDeadOpensColdStart() {
|
||||
let action = FlowHandoffPolicy.micPressAction(
|
||||
availability: .unavailable(.hostNotReady),
|
||||
|
||||
Reference in New Issue
Block a user