hex/ios/HEXMobileTests
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Ryan Vogel 984515005d iOS: Paste and Code from Messages give way to suggestions in chat boxes
TestFlight build 56 (iPhone 16, iOS 27.2.1): in ChatGPT and Capy the strip's
Paste and Code from Messages chips stayed up the whole time, in place of
suggestions, even with nothing to paste.

Cause: the strip treated every .oneTimeCode field as a code field for as
long as it had focus, and a code field's chips always replaced suggestions.
Chat apps can mark their message box .oneTimeCode (inferred from a test
host: ChatGPT and Capy can't run on a simulator). Such a box reports the
same content type, keyboard type and return key as Safari's
autocomplete=one-time-code input; only autocorrection differs (a native box
leaves it at default, WebKit always sets it). Separately, Paste replaced
next-word suggestions after every word for three minutes after a copy.

Change (KeyboardClipboardTracker.offer, now given the field's keyboard type,
autocorrection and whether it is empty):
- Nothing is offered unless the field is empty, as Apple's keyboard offers a
  recent copy only in an empty field (iOS 27.2 black box). Removed: Paste in
  place of next-word suggestions in a field that has text.
- Code from Messages needs a .oneTimeCode field with a number-style keyboard,
  or with autocorrection set either way (Safari's fields), plus Apple's
  keyboard as before. A .oneTimeCode box with letters and default
  autocorrection gets suggestions and, for a fresh copy, Paste.
- Trade-off: a native .oneTimeCode text field with letters and default
  autocorrection no longer gets the chip (Paste for a fresh copy still shows).

Verified on an iPhone 16 simulator, iOS 27.2, with real touches. Before (build
56 and dev f4a45df8), in a .oneTimeCode UITextView, the chips stayed while
empty, typing and after words, with or without a copy. Autocorrect worked
(teh -> the), but its suggestions were hidden. After: a fresh copy gives Paste
only while empty, a copy older than three minutes or an empty clipboard gives
starters, typing gives suggestions. A number-pad code field shows Paste + Code
from Messages and the chip leaves after a digit. Safari
autocomplete=one-time-code input, inputmode=numeric input and textarea keep the
chip, it leaves on typing, and a plain input gets starters. With only Hex +
Emoji there is no chip, and Paste only for a fresh copy. Apple's keyboard in
the same chat box: normal predictions and autocorrect, and "Paste from <app>"
for a recent copy only while empty. xcodebuild test: 675 tests, 1 skipped, 0
failures, with a new KeyboardClipboardTests case.
2026-11-21 18:26:58 -05:00
..
Fixtures iOS: emoji panel with on-device suggestions (Experiments › Emoji) (#2051) 2026-11-20 15:53:24 +00:00
AutocorrectEngineTests.swift ios keyboard: read a missed space with a slip, and run-together words (#2244) 2026-11-21 16:15:02 -05:00
CleanupTaggerTests.swift iOS keyboard: stale microphone errors clear, Hex key audio calls leave the main thread, counts read 1, 2, 3 (#2203) 2026-11-21 10:08:42 -05:00
CustomVocabularyTests.swift ios: custom vocabulary experiment (#1547) 2026-11-08 12:15:00 -05:00
DictationControllerTests.swift iOS: Czech keyboard, and custom words for typing (#2205) 2026-11-21 10:37:55 -05:00
DictationLanguageTests.swift iOS: dictate Latin American Spanish with Latin America's model, and keep a picked variant when the keyboard switches (#2193) 2026-11-21 09:53:34 -05:00
DictationLearningTests.swift iOS: hold the bar to dictate, Learn how I type on, a plain centred Paste, and typing logs off (#2210) 2026-11-21 12:11:58 -05: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
EmojiPanelLettersKeyTests.swift iOS: experiment to put the emoji panel's ABC under the emoji key (#2221) 2026-11-21 13:41:53 -05:00
EmojiSuggesterTests.swift iOS: swipe reads the letters under the path, and the emoji bar scrubs (#2189) 2026-11-21 08:47:45 -05:00
FullKeyboardEngineTests.swift iOS: Paste and Code from Messages give way to suggestions in chat boxes 2026-11-21 18:26:58 -05:00
HexKeyGestureTests.swift iOS: Undo dictation works after the cursor moves, and goes when it can't (#2240) 2026-11-21 15:15:23 -05:00
KeyboardBridgeTests.swift iOS: onboarding always shows the Hex key, and practice needs Hex's dictation (#2211) 2026-11-21 12:20:32 -05:00
KeyboardLayoutTests.swift iOS: a 38 pt top bar with room above its words, on a glass-coloured material instead of a fixed-colour panel (#2256) 2026-11-21 17:06:06 -05:00
KeyboardSwitchGuessTests.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
LanguageLearningTests.swift ios: learn each language separately (experiment) (#2188) 2026-11-21 09:00:58 -05:00
ShiftStateMachineTests.swift iOS: Greek keyboard, tonos autocorrect, and a final ς in Lowercase (#2184) 2026-11-21 08:26:30 -05:00
SwipeDecoderTests.swift iOS: swipe reads the letters under the path, and the emoji bar scrubs (#2189) 2026-11-21 08:47:45 -05:00
TranscriptCleanupTests.swift fix(labs): Apple Intelligence cleanup never pastes an answer or a preamble (#2212) 2026-11-21 13:43:24 -05:00
TypingLogTests.swift iOS: hold the bar to dictate, Learn how I type on, a plain centred Paste, and typing logs off (#2210) 2026-11-21 12:11:58 -05:00