hex/ios/HEXKeyboard
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Ryan Vogel 4c07a743da
iOS: say why the keyboard couldn't use its speech model, and offer Try again (#2858)
* iOS: say why the keyboard couldn't use its speech model, and offer Try again

What: Settings › Dictation's speech model line said "The keyboard can't use it right now,
so it uses Apple's speech recognition." for six causes. The keyboard now records why with
.unavailable (KeyboardParakeetSettings.UnavailableReason: shortOfMemory, noNeuralEngine,
notOnNeuralEngine, loadFailed), and the line says it and what happens next:
- short of memory at the keyboard's last open: it tries again the next time it opens;
- a keyboard limit under 131 MB (hold .keyboardTooSmall, for good): this iPhone's keyboard
  doesn't have the memory for it;
- no Neural Engine: this iPhone can't run it in the keyboard;
- a load that threw or wasn't on the Neural Engine: the keyboard couldn't load it, with
  Try again (purgesCompiled, and the keyboard now clears its per-process set-aside when it
  sees that flag, so it really loads again);
- an older keyboard's reasonless .unavailable: couldn't use it when it last opened, tries
  again next time.
Getting ready now adds that it takes longer after a download or an update. The keyboard no
longer writes .unavailable for a load still going after loadPatience (180 s); it only logs
it. Removed: the "can't use it right now" string, which also stayed up after the cause had
passed, since nothing but the keyboard's next load, the switch or a model removal clears it.
Fixture scenes settings-dictation-model-english-<preparing|short|noengine|failed|unknown|toosmall>
for screenshots. zh-Hans for every new line.

Why: a post on X (2026-11-25) showed the sentence with no way to tell why.

Verified: DictationSSOTTests (each reason's line, the reason round trip, Try again, no line
says right now); suite and screenshots in a simbox, separately.

* iOS: run the keyboard model line test on the main actor

What: testTheKeyboardsSpeechModelLineSaysWhyItCouldntUseItAndWhatHappensNext is @MainActor.
Why: KeyboardParakeetStatus.retryInKeyboard is main-actor isolated (a View's static), and
passing the settings to it from a nonisolated test didn't compile under Swift 6.
Verified: test build in the simbox.
2026-11-25 12:22:40 -05:00
..
CleanupTagger iOS: clean up what I say with an on-device tagger (experiment) (#2023) 2026-11-20 01:29:41 +00:00
TypingModel iOS keyboard: Polish autocorrects with Hex's own model, word list and capitals (#2423) 2026-11-22 14:45:55 -05:00
AppleLiveTranscriber.swift iOS keyboard: Show what I say and Type as I speak (words while you dictate) (#2410) 2026-11-22 13:37:37 -05:00
ContainingAppOpener.swift Open Hex from the iPhone keyboard and show live keyboard setup (#599) 2026-10-31 09:56:02 -07:00
HEXKeyboard.entitlements Set up Hex Mobile internal TestFlight releases (#1997) 2026-11-19 11:48:49 -05:00
Info.plist iOS keyboard: Hex's input mode says mul, not en-US, so a French iPhone never takes it for English (#2441) 2026-11-22 18:55:02 -05:00
KeyboardInputView.swift iOS keyboard: stop leaking views, capture web views, and emoji indices across shows (#2352) 2026-11-22 06:45:38 -05:00
KeyboardLiveDictation.swift iOS Settings: Home refreshes again while it shows, Into field falls back to the words over the keys, the speech model card lands on its row, docs match (#2471) 2026-11-22 23:00:12 -05:00
KeyboardLiveTyping.swift iOS Settings: Home refreshes again while it shows, Into field falls back to the words over the keys, the speech model card lands on its row, docs match (#2471) 2026-11-22 23:00:12 -05:00
KeyboardLocalDictation.swift refactor(ios): simplify dictation capture phase, controller shims, and Parakeet wrappers\n\n- Slim KeyboardLocalCapturePhase to a read-only snapshot projection and remove its unused mutating state-machine helpers, StartupStage, ArmedFailure, ArmedReadiness, and KeepArmedOutcome\n- Remove duplicate DictationController.markModelReadyPreservingCapture(), unused keyboardSessionExpiresAt, and the redundant KeyboardJob enum wrapper in favor of String?\n- Point FullKeyboardView.offerModelNotice directly at KeyboardParakeetPlan.current().awaitsV2Download and delete legacy boolean-flattening shims (KeyboardParakeetNotice.modelAwaitsDownload, dictatesEnglish, and KeyboardParakeetDownload.hold(otherEngine:...))\n- Update DictationStateMachineTests, KeyboardBridgeTests, and DictationControllerTests to cover real snapshot projections, controller transitions, and KeyboardParakeetPlan (#2626) 2026-11-23 19:19:00 -08:00
KeyboardParakeet.swift iOS: say why the keyboard couldn't use its speech model, and offer Try again (#2858) 2026-11-25 12:22:40 -05:00
KeyboardProbeLog.swift iOS keyboard: a notification no longer ends an in-keyboard dictation (#2472) 2026-11-23 00:04:17 -05:00
KeyboardSpeech.swift iOS: call Settings' unfinished features Labs (#2613) 2026-11-24 23:36:26 -08:00
KeyboardViewController.swift iOS keyboard: Hex's own number pad for number fields (#2541) 2026-11-24 17:48:35 -05:00
KeyboardWebCapture.swift iOS: call Settings' unfinished features Labs (#2613) 2026-11-24 23:36:26 -08:00
ParakeetLiveTranscriber.swift iOS keyboard: Show what I say and Type as I speak (words while you dictate) (#2410) 2026-11-22 13:37:37 -05:00
PrivacyInfo.xcprivacy iOS: version 1.0, iPhone only, privacy manifests (#2052) 2026-11-20 15:54:01 +00:00