Skip to content

Explain input_not_focused for invisible focused fields - #11

Merged
leeguooooo merged 1 commit into
mainfrom
fix/issue-7
Nov 19, 2026
Merged

leeguooooo merged 1 commit into
mainfrom
fix/issue-7

Conversation

@leeguooooo

Copy link
Copy Markdown
Owner

Fixes #7

When type is refused with input_not_focused (e.g. Unity/canvas search field whose focused TextField reports visible:false), the failure detail now explains that the focused field is not a visible actionable node and suggests tapping on-screen keyboard keys instead.

Clearer-error only: the device-side focus check (runner/phone Java requiring isVisibleToUser()) is unchanged and still fail-closed. Relaxing it to type through an invisible-but-focused input needs device validation on Unity, which I could not do here.

Tests: added unit tests for the refusal detail mapping; cargo test passes.

@coderabbitai

coderabbitai Bot commented Nov 6, 2026

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 79c9a9f2-3181-4536-8ea5-70346f47826a
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@leeguooooo
leeguooooo merged commit be9cd73 into main Nov 19, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unity search field reports focused but type refuses input

1 participant