fix(ios): name keyboard enter when a dismiss refusal sees a submitting Return key

Merged
TH
9d ago
+30-5

Summary

keyboard dismiss on iOS refuses a keyboard it cannot hide (keyboard_dismiss_unavailable, dispatched: no). On a search field the useful next step is usually Return, but the hint only named the Hide Keyboard key and a pan gesture, so agents retried dismiss or got stuck behind the keyboard.

The refusal now reads the Return key its own status already observed. For search, go, done and send it opens with keyboard enter and what it will do; send is explicit that it sends. Other keys keep the old hint. Dismiss still never presses Return (#4644), and no extra device read is added.

4 files: runner refusal + call site, a runner unit test, and the keyboard help text.

$ agent-device keyboard dismiss
Error (UNSUPPORTED_OPERATION): The Apple runner cannot dismiss this keyboard automatically. Not dispatched. Next: To submit this search, run keyboard enter. Inspect the screen and press the visible Hide Keyboard key ...

Validation

  • Tested at 2b8165a81c's content (pre-split head) on an iOS 27.0 simulator with the Bluesky prod app: fill the search field, keyboard dismiss returns the output above; keyboard enter then submits and keyboard status reports hidden.
  • New runner unit test testKeyboardDismissRefusalNamesKeyboardEnterOnlyWhereReturnEndsTheEdit; CI owns the Swift unit and iOS device lanes.
  • Local check:affected not run (host load average 300–1000); CI validates the pushed head.

šŸ¤– Generated with Claude Code


Autofix with [code]smith
Open in [code]smith Ā· Need help on this PR? Tag @codesmith-bot with what you need.