hex/ios/HEXShared
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
..
Formatting iOS: group shared sources and split the full keyboard tests (#2448) 2026-11-22 18:18:35 -08:00
FullKeyboard iOS: call Settings' unfinished features Labs (#2613) 2026-11-24 23:36:26 -08:00
HexWords iOS: Hex words files and Word replacements (behind Custom vocabulary) (#2782) 2026-11-24 18:58:06 -05:00
Romanizers iOS: call Settings' unfinished features Labs (#2613) 2026-11-24 23:36:26 -08:00
Spelling iOS: group shared sources and split the full keyboard tests (#2448) 2026-11-22 18:18:35 -08:00
TypingLog iOS: call Settings' unfinished features Labs (#2613) 2026-11-24 23:36:26 -08:00
AppleIntelligenceCleanupSettings.swift ios: optional Apple Intelligence transcript cleanup (experiment) (#1538) 2026-11-08 08:07:11 -05:00
AppleSpeechModule.swift iOS: a working dictation is never taken away by a guess, and no speech model check sits forever (#2371) 2026-11-22 08:56:10 -05:00
AppleSpeechTwoLanguage.swift iOS: call Settings' unfinished features Labs (#2613) 2026-11-24 23:36:26 -08:00
AudioSessionControlling.swift iOS: a warm session dictates in the background on iOS 27 again, and a keyboard that opens Hex brings the warm default back (#2406) 2026-11-22 13:12:24 -05:00
CustomVocabularySettings.swift ios: custom vocabulary experiment (#1547) 2026-11-08 12:15:00 -05:00
DictationCorrections.swift iOS: Hex words files and Word replacements (behind Custom vocabulary) (#2782) 2026-11-24 18:58:06 -05:00
DictationEditInference.swift ios: learn dictation and typing fixes from edits (Learn how I type) (#2022) 2026-11-20 01:04:58 +00:00
DictationEditTracker.swift ios: learn dictation and typing fixes from edits (Learn how I type) (#2022) 2026-11-20 01:04:58 +00:00
DictationEngine.swift iOS keyboard: nothing opens Hex unless the person taps Open Hex (#2707) 2026-11-24 17:27:40 -05:00
DictationLanguage.swift iOS 1.0.5: the 17 fixes from the quality reviews (#2862) 2026-11-25 19:24:59 -05:00
DictationLanguageSwitch.swift iOS 1.0.5: the 17 fixes from the quality reviews (#2862) 2026-11-25 19:24:59 -05:00
DictationPipeline.swift iOS: call Settings' unfinished features Labs (#2613) 2026-11-24 23:36:26 -08:00
DictationTranslation.swift iOS: Translate what I say asks for the language packs the keyboard needs (#2717) 2026-11-24 17:28:14 -05:00
DotScope.swift fix(ios): show recording only once audio starts flowing (#2478) 2026-11-22 21:59:22 -08:00
DotScopeShader.metal iOS: dictation strip motion (round 3) (#2457) 2026-11-22 18:42:34 -08:00
EmptyCapture.swift iOS: fix six TestFlight tester issues (audio error, leaked error text, Live Activity, haptics, capitals, push to talk) (#2035) 2026-11-20 13:21:16 +00:00
HexTheme.swift fix(ios): eliminate handoff frame stalls and add overlapping ballistic swipe throw (t1153) (#757) 2026-10-31 22:14:22 -07:00
HomeSwipeCue.swift iOS: a tap after a swiped word starts the next word, and the Metal HUD stays off the home page (#2159) 2026-11-21 07:54:19 +00:00
InputModeListTouch.swift iOS keyboard: the dictation bar's globe opens the keyboard list where Apple's keyboard is split, so the host doesn't crash (#2417) 2026-11-22 14:13:11 -05:00
KeyboardBridge.swift iOS keyboard: Open Hex as the last row of the Hex key menu (#2791) 2026-11-24 20:22:47 -05:00
KeyboardCaptureWatch.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
KeyboardInterruptedRecording.swift iOS keyboard: keep a dictation the screen lock cut short (#2596) 2026-11-23 17:27:44 -05:00
KeyboardParakeetPlan.swift iOS Settings: Dictation › Model picks English or Multilingual for the keyboard (#2709) 2026-11-24 17:28:50 -05:00
KeyboardParakeetSettings.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
KeyboardSelfDictation.swift iOS keyboard: nothing opens Hex unless the person taps Open Hex (#2707) 2026-11-24 17:27:40 -05:00
KeyboardsOnScreen.swift iOS keyboard: stop leaking views, capture web views, and emoji indices across shows (#2352) 2026-11-22 06:45:38 -05:00
KeyboardSurface+ViewModel.swift iOS: call Settings' unfinished features Labs (#2613) 2026-11-24 23:36:26 -08:00
KeyboardSurface.swift iOS 1.0.5: the 17 fixes from the quality reviews (#2862) 2026-11-25 19:24:59 -05:00
KeyboardSwitchGuess.swift iOS: the dictation bar can start dictating by itself (Auto-start: never, on switch, always) (#2267) 2026-11-21 17:08:50 -05:00
LiveDictation.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
LiveDictationPreview.swift iOS keyboard: Key colors (was Keyboard themes): themes colour the keys, not the background (#2778) 2026-11-24 18:29:19 -05:00
LiveFieldTyping.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
LiveWordsView.swift iOS keyboard: smoother, calmer motion for the live dictation preview (#2424) 2026-11-22 14:49:09 -05:00
MicrophoneChoice.swift iOS: plainer interface wording (copy pass) (#2345) 2026-11-22 03:45:00 -05:00
MultilingualParakeetSettings.swift iOS Settings: Dictation › Model picks English or Multilingual for the keyboard (#2709) 2026-11-24 17:28:50 -05:00
SpeechModelInstall.swift iOS 1.0.5: the 17 fixes from the quality reviews (#2862) 2026-11-25 19:24:59 -05:00
SpeechModelStore.swift iOS: Home card for Hex's own speech model, and Speech model in keyboard moves to Settings › Dictation (#2437) 2026-11-22 18:03:28 -05:00
SpeechModelUnresponsive.swift iOS: speech model preparation that never answers fails with Try again (#2372) 2026-11-22 12:31:22 -05:00
TwoLanguageDictationSettings.swift iOS: call Settings' unfinished features Labs (#2613) 2026-11-24 23:36:26 -08:00
TwoLanguageMerge.swift iOS: call Settings' unfinished features Labs (#2613) 2026-11-24 23:36:26 -08:00
UserFacingError.swift iOS: fewer paste prompts, and a translate switch in the keyboard (#2134) 2026-11-21 03:24:58 +00:00
VoiceIsolationSettings.swift iOS: call Settings' unfinished features Labs (#2613) 2026-11-24 23:36:26 -08:00