hex/ios/HEXMobileTests
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Ryan Vogel f17a60d40b iOS: read the field's documentIdentifier without trapping on nil
UITextDocumentProxy.documentIdentifier is declared non-optional, but the
keyboard's proxy returns nil early on (in viewDidLoad, and at times later).
Reading that nil as Swift's UUID traps. Two agents hit it: the Debug
keyboard crashed in followTypingLogField() and in viewDidLoad. In Release
it's undefined behaviour.

Reproduced on dev 71b5a8ec in the iOS 27.0 simulator with Record typing
logs on: Hex up in Safari's address bar, then Messages and back to Safari,
five times. The keyboard crashed 4 times, 2 EXC_BREAKPOINT in
UUID._unconditionallyBridgeFromObjectiveC from beginTypingLogSession
(viewWillAppear), each followed by the extension host's abort. Earlier
reports trap the same way from followTypingLogField (textDidChange). The
same script on this commit crashed 0 times.

Both reads (typing-log session start and field follow) now go through
TypingLogTraits.documentIdentifier(of:), which reads it through key-value
coding after a responds(to:) check and gives nil instead of trapping. A
document UIKit couldn't name yet counts as the session's field
(TypingLogTraits.isOtherField(than:)). So a session that began before the
field was named isn't split in two when the name arrives: it keeps the
document instead. Another document or other traits still start a new
session, as before.

Verified: xcodebuild test on an iPhone 17 (iOS 27.2) simulator, all tests
passing (1 skipped, as on dev), with new TypingLogTests cases: a nil
document reads as nil with no trap, a real one reads as itself, and an
object without the property gives nil. An unnamed document matches the same
field, and other documents or traits don't.
2026-11-20 22:44:23 -05:00
..
Fixtures iOS: emoji panel with on-device suggestions (Experiments › Emoji) (#2051) 2026-11-20 15:53:24 +00:00
AutocorrectEngineTests.swift iOS: Ukrainian keyboard layout (#2128) 2026-11-21 02:30:15 +00:00
CleanupTaggerTests.swift iOS: Clean up what I say keeps names, and is on by default (#2132) 2026-11-21 03:12:53 +00:00
CustomVocabularyTests.swift ios: custom vocabulary experiment (#1547) 2026-11-08 12:15:00 -05:00
DictationControllerTests.swift iOS: keep a failed recorder alive until its audio queue stops calling back (#2133) 2026-11-21 03:16:37 +00:00
DictationLearningTests.swift ios: learn dictation and typing fixes from edits (Learn how I type) (#2022) 2026-11-20 01:04:58 +00:00
DotScopeTests.swift fix(ios): eliminate handoff frame stalls and add overlapping ballistic swipe throw (t1153) (#757) 2026-10-31 22:14:22 -07:00
EmojiSuggesterTests.swift iOS: emoji panel with on-device suggestions (Experiments › Emoji) (#2051) 2026-11-20 15:53:24 +00:00
FullKeyboardEngineTests.swift iOS: the full keyboard's top bar matches the system keyboard (#2135) 2026-11-21 03:26:34 +00:00
HexKeyGestureTests.swift iOS: fewer paste prompts, and a translate switch in the keyboard (#2134) 2026-11-21 03:24:58 +00:00
KeyboardBridgeTests.swift iOS: onboarding follows the desktop flow (#2136) 2026-11-21 03:27:38 +00:00
KeyboardLayoutTests.swift iOS: an opaque panel under the keyboard so iOS's leftovers can't show through 2026-11-20 22:44:23 -05:00
ShiftStateMachineTests.swift iOS: full keyboard experiment flag, key layout and shift model (#910) 2026-11-01 12:43:35 -08:00
SwipeDecoderTests.swift iOS: swipe typing for English and Spanish (Experiment, off by default) (#2106) 2026-11-20 22:30:53 +00:00
TranscriptCleanupTests.swift iOS: Clean up what I say keeps names, and is on by default (#2132) 2026-11-21 03:12:53 +00:00
TypingLogTests.swift iOS: read the field's documentIdentifier without trapping on nil 2026-11-20 22:44:23 -05:00