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:
@@ -12,7 +12,8 @@ public enum MicVoiceAvailabilityResolver {
|
||||
hasFullAccess: Bool,
|
||||
appGroupAvailable: Bool,
|
||||
hostReady: Bool,
|
||||
isPreparingSession: Bool
|
||||
isPreparingSession: Bool,
|
||||
hasCompletedOnboarding: Bool = true
|
||||
) -> MicVoiceAvailability {
|
||||
switch phase {
|
||||
case .recording:
|
||||
@@ -25,6 +26,10 @@ public enum MicVoiceAvailabilityResolver {
|
||||
break
|
||||
}
|
||||
|
||||
// Host owns setup; keyboard only gates voice until that finishes.
|
||||
if !hasCompletedOnboarding {
|
||||
return .unavailable(.onboardingIncomplete)
|
||||
}
|
||||
if !appGroupAvailable {
|
||||
return .unavailable(.appGroupUnavailable)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user