Skip to content

feat(io): keyboard status and hide commands#298

Open
gmegidish wants to merge 2 commits into
mainfrom
feat/io-keyboard-status-hide
Open

feat(io): keyboard status and hide commands#298
gmegidish wants to merge 2 commits into
mainfrom
feat/io-keyboard-status-hide

Conversation

@gmegidish

Copy link
Copy Markdown
Member

Summary

Adds io keyboard status and io keyboard hide to both the CLI and the JSON-RPC server.

  • KeyboardControllable is an optional device interface — only Android implements it, so iOS/simulator/remote devices return keyboard control is not supported on device ….
  • Android KeyboardStatus(): runs adb shell dumpsys window and returns visible if mIsImeShowing=true is present, otherwise hidden.
  • Android HideKeyboard(): if the keyboard is visible, presses BACK and polls status for up to 2s until hidden; errors if it stays visible.

Surfaces

  • CLI: mobilecli io keyboard status / mobilecli io keyboard hide
  • Server: device.io.keyboard.status / device.io.keyboard.hide

Both return {"status": "visible" | "hidden"}.

Test plan

Verified end-to-end on two connected Android devices (real Pixel 5 + Pixel 9 Pro emulator):

Device status (kbd up) hide status (after)
Real Pixel 5 visible hidden hidden
Pixel 9 Pro emulator visible hidden hidden
  • iOS/simulator implementations (currently return "not supported", as intended)

@coderabbitai

coderabbitai Bot commented Jul 14, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You’ve reached a temporary PR review limit under our Fair Usage Limits Policy.

Your recent review volume is higher than typical usage, so adaptive limits are currently applied.

Next review available in: 2 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: d9b11570-482e-4d9d-91d0-b3e561de31fb

📥 Commits

Reviewing files that changed from the base of the PR and between 19ba6af and 3c35b2b.

📒 Files selected for processing (3)
  • commands/input.go
  • devices/android.go
  • devices/common.go

Walkthrough

Adds on-screen keyboard status and hide operations. Android devices detect IME visibility through adb dumpsys window and hide the keyboard with BACK plus polling. New command handlers resolve devices and validate keyboard support. Cobra commands and JSON-RPC methods expose status and hide operations with optional device selection and structured responses.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly summarizes the main change: adding keyboard status and hide commands under io.
Description check ✅ Passed The description is directly related to the added CLI and JSON-RPC keyboard commands and their Android behavior.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/io-keyboard-status-hide

Comment @coderabbitai help to get the list of available commands.

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.

1 participant