hex/ios/HEXMobile
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
..
Assets.xcassets iOS: What's new, once after an update (1.0.5) (#2859) 2026-11-25 19:37:56 -05:00
Feedback iOS 1.0.5: the 17 fixes from the quality reviews (#2862) 2026-11-25 19:24:59 -05:00
HexWords iOS: Hex words files and Word replacements (behind Custom vocabulary) (#2782) 2026-11-24 18:58:06 -05:00
Settings iOS 1.0.5: the 17 fixes from the quality reviews (#2862) 2026-11-25 19:24:59 -05:00
WhatsNew iOS: What's new, once after an update (1.0.5) (#2859) 2026-11-25 19:37:56 -05:00
zh-Hans.lproj iOS: Hex words files and Word replacements (behind Custom vocabulary) (#2782) 2026-11-24 18:58:06 -05:00
AcknowledgementsView.swift iOS Settings: Dictation › Model picks English or Multilingual for the keyboard (#2709) 2026-11-24 17:28:50 -05:00
AppleSpeechTranscriber.swift iOS: call Settings' unfinished features Labs (#2613) 2026-11-24 23:36:26 -08:00
AppShortcuts.xcstrings iOS: Simplified Chinese interface for the app, widgets and permission prompts (#2083) 2026-11-20 18:15:44 +00:00
AudioBackend.swift iOS: call Settings' unfinished features Labs (#2613) 2026-11-24 23:36:26 -08:00
ContentView.swift iOS: What's new, once after an update (1.0.5) (#2859) 2026-11-25 19:37:56 -05:00
CustomVocabularyEditor.swift iOS: Hex words files and Word replacements (behind Custom vocabulary) (#2782) 2026-11-24 18:58:06 -05:00
DictationController+Engine.swift iOS: both speech models download on Wi-Fi, with Use mobile data (#2846) 2026-11-25 09:10:45 -05:00
DictationController+LaunchFixtures.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
DictationController+ModelPreparation.swift iOS 1.0.5: the 17 fixes from the quality reviews (#2862) 2026-11-25 19:24:59 -05:00
DictationController+State.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
DictationController+WarmDefault.swift iOS: Keep mic warm defaults to Off and hides where the keyboard dictates by itself (#2393) 2026-11-22 11:58:48 -05:00
DictationController.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
EmojiSemanticIndex.swift
Feedback.xcconfig iOS: Send feedback form (Bellhop), email decides anonymous (#2575) 2026-11-23 16:00:03 -05:00
FullKeyboardSnapshotStage.swift iOS: What's new, once after an update (1.0.5) (#2859) 2026-11-25 19:37:56 -05:00
HexIntents.swift iOS: plainer interface wording (copy pass) (#2345) 2026-11-22 03:45:00 -05:00
HexLinks.swift
HEXMobile.entitlements
HEXMobileApp.swift iOS: What's new, once after an update (1.0.5) (#2859) 2026-11-25 19:37:56 -05:00
Info.plist iOS: Hex words files and Word replacements (behind Custom vocabulary) (#2782) 2026-11-24 18:58:06 -05:00
KeyboardParakeetDownload.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
KeyboardPreviewHost.swift iOS keyboard: remove the "Logging" mark; Record typing logs is only the switch (#2382) 2026-11-22 10:50:35 -05:00
KeyboardSetup.swift iOS 1.0.5: the 17 fixes from the quality reviews (#2862) 2026-11-25 19:24:59 -05:00
KeyboardSpeechPreparation.swift iOS keyboard: nothing opens Hex unless the person taps Open Hex (#2707) 2026-11-24 17:27:40 -05:00
LanguageSettingsRows.swift iOS 1.0.5: the 17 fixes from the quality reviews (#2862) 2026-11-25 19:24:59 -05:00
LiveActivityCoordinator.swift
Localizable.xcstrings 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
Onboarding.swift iOS 1.0.5: the 17 fixes from the quality reviews (#2862) 2026-11-25 19:24:59 -05:00
OnboardingPieces.swift iOS: plainer interface wording (copy pass) (#2345) 2026-11-22 03:45:00 -05:00
OnboardingProgress.swift iOS: onboarding always shows the Hex key, and practice needs Hex's dictation (#2211) 2026-11-21 12:20:32 -05:00
OnDeviceSpeechTranscriber.swift refactor(ios): unify dictation routing, engine identity, and Parakeet plan (#2491) 2026-11-22 22:59:41 -08:00
ParakeetTranscriber.swift refactor(ios): unify dictation routing, engine identity, and Parakeet plan (#2491) 2026-11-22 22:59:41 -08:00
ParakeetUltraDownload.swift iOS: both speech models download on Wi-Fi, with Use mobile data (#2846) 2026-11-25 09:10:45 -05:00
ParakeetUltraModel.swift iOS Settings: Dictation › Model picks English or Multilingual for the keyboard (#2709) 2026-11-24 17:28:50 -05:00
ParakeetUltraTranscriber.swift iOS Settings: Dictation › Model picks English or Multilingual for the keyboard (#2709) 2026-11-24 17:28:50 -05:00
PrivacyInfo.xcprivacy iOS: the app's privacy manifest declares what Send feedback sends (#2779) 2026-11-24 18:33:22 -05:00
SettingsComponents.swift iOS: both speech models download on Wi-Fi, with Use mobile data (#2846) 2026-11-25 09:10:45 -05:00
SpeechEngineChoice.swift iOS: plainer interface wording (copy pass) (#2345) 2026-11-22 03:45:00 -05:00
SpeechModelMove.swift iOS: Speech model in keyboard on by default for English, downloaded only where the keyboard can use it (#2390) 2026-11-22 12:18:29 -05:00
TranscriptCleanup.swift fix(labs): Apple Intelligence cleanup never pastes an answer or a preamble (#2212) 2026-11-21 13:43:24 -05:00
TranslateDictationRow.swift iOS 1.0.5: the 17 fixes from the quality reviews (#2862) 2026-11-25 19:24:59 -05:00
TranslationSessionHost.swift iOS: Apple's on-device recognizer for older iPhones and languages Parakeet can't do, and iOS 18 translation (#2190) 2026-11-21 08:49:11 -05:00
TypingInsightsView.swift Learn how I type: a word erased and retyped teaches only when it was a slip of the new one (#2438) 2026-11-22 18:54:23 -05:00
TypingLogsView.swift iOS: call Settings' unfinished features Labs (#2613) 2026-11-24 23:36:26 -08:00