hex/ios/HEXKeyboard
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Ryan Vogel 2548a1b876
iOS: the keyboard model's memory lines say their numbers, and Remove where it can't run (#2874)
* iOS: the keyboard model's memory lines say their numbers, and Remove where it can't run

What (card A213, approved by Ryan):
- The two memory causes carry their numbers, whole megabytes rounded down: "This iPhone's
  keyboard has 118 MB; the model needs 131 MB, so it uses Apple's speech recognition." (这台
  iPhone 的键盘有 %1$lld MB 内存,模型需要 %2$lld MB,因此使用 Apple 的语音识别。) from the
  limit the keyboard already records, and "The keyboard had 41 MB free when it last opened;
  loading the model needs 58 MB, so it used Apple's speech recognition. It tries again the
  next time it opens." (键盘上次打开时只有 %1$lld MB 可用内存,载入模型需要 %2$lld MB,因此
  使用了 Apple 的语音识别。下次打开时会再试一次。). The keyboard saves what was free with
  shortOfMemory (KeyboardParakeetSettings.keyboardStateFree, in the App Group it already
  writes; nothing is sent, Send feedback unchanged). Without a number (after a memory
  warning, an older keyboard, nothing measured) the lines keep today's words, never 0 MB.
- A switch turned on by hand no longer downloads where the keyboard measured under 131 MB
  (KeyboardParakeetDownload.downloads); Wi-Fi and free space stay skippable, and before the
  keyboard has ever opened it still downloads at once, as today.
- Remove (464 MB) (移除(%@)) where English's model is on the iPhone and the keyboard is too
  small for it: deleteKeyboardParakeet, what turning the switch off already deletes, with the
  switch left on, so the page then reads the too-small line, no button, and nothing downloads
  again. Never automatic; not while Hex dictates with that model; not for Multilingual, which
  Hex dictates with too. The size is the folder's files on disk.
- Snapshot scenes: toosmall now records 118 MB; toosmalldownloaded has the model on disk;
  short has 41 MB free.
Why: TestFlight 153, iPhone 14 (6 GB): the model was downloaded (by hand) but the keyboard
could never use it, and the page couldn't say on which numbers.
Verified: DictationSSOTTests (numbers, fallbacks, rounding, what the keyboard saves) and
DictationControllerTests (downloads by hand); suite and screenshots in a simbox, separately.

* iOS: the too-small snapshot scene dictates with Apple's speech recognition

What: settings-dictation-model-english-toosmalldownloaded sets Hex's own transcriber to
Apple's speech recognition, so English's model is the keyboard's alone there and Remove shows.
Why: in snapshots Hex keeps its initial Parakeet transcriber with the model ready, which
rightly hides Remove (Hex would dictate with it); an iPhone 14 on iOS 27 dictates with Apple's.
Verified: screenshot in a simbox.

* iOS: the too-small snapshot scene keeps Hex from preparing its own model

What: settings-dictation-model-english-toosmalldownloaded gives the controller the dictation
language the fixture stored (applyFixtureDictationLanguage), so Settings › Dictation doesn't
prepare a model for it as it appears.
Why: on the simulator, which has no Apple English model, that preparation picked Parakeet V2
for Hex itself, which rightly hid Remove; on an iPhone 14 Hex dictates with Apple's.
Verified: screenshot in a simbox.
2026-11-25 20:15:55 -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: the keyboard model's memory lines say their numbers, and Remove where it can't run (#2874) 2026-11-25 20:15:55 -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: no line without a reason from the keyboard's speech model state (#2863) 2026-11-25 15:16:33 -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