Skip to content

fix: harden Android non-ASCII text input path#118

Merged
thymikee merged 1 commit into
mainfrom
codex/fix-android-non-ascii-fill
Feb 24, 2026
Merged

fix: harden Android non-ASCII text input path#118
thymikee merged 1 commit into
mainfrom
codex/fix-android-non-ascii-fill

Conversation

@thymikee
Copy link
Copy Markdown
Member

Summary

Improve Android text input reliability for non-ASCII payloads and document safe fallback guidance.

  • For non-ASCII text, try clipboard+paste injection first; keep adb shell input text for ASCII.
  • If device shell cannot support non-ASCII input, return a clear normalized error instead of corrupting field content.
  • Keep Unicode-safe chunking and align fill clear-count with code-point length.
  • Add/adjust Android platform tests for unicode clipboard path, ASCII path, and unsupported-shell error path.
  • Update docs/skill with safe IME workaround guidance and trusted-source + verification notes.
  • Closes Fail to fill text with Chinese character or emoji #116.

Touched files: 6.
Scope: Android text input path + related docs/skill only (did not expand beyond this module area).
Known gap: this emulator image does not expose clipboard shell command support (cmd clipboard), so non-ASCII requires an external IME workaround.

Validation

  • pnpm typecheck
  • pnpm test src/platforms/android/__tests__/index.test.ts
  • Live emulator checks:
    • pnpm ad --session android --platform android fill @e2 很 --json
    • pnpm ad --session android --platform android fill @e2 ☝ --json

@thymikee thymikee force-pushed the codex/fix-android-non-ascii-fill branch from 7cfa0fc to 663fd78 Compare February 24, 2026 15:48
@github-actions
Copy link
Copy Markdown

PR Preview Action v1.8.1

QR code for preview link

🚀 View preview at
https://callstackincubator.github.io/agent-device/pr-preview/pr-118/

Built to branch gh-pages at 2026-02-24 15:49 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

@thymikee thymikee merged commit ddfeb65 into main Feb 24, 2026
6 checks passed
@thymikee thymikee deleted the codex/fix-android-non-ascii-fill branch February 24, 2026 15:53
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.

Fail to fill text with Chinese character or emoji

1 participant