feat(harmonyos): report the keyboard band in snapshot responses

ST
3h ago
+359-3

Summary

On HarmonyOS, a coordinate tap into a field covered by the soft keyboard lands on the keyboard itself — a session created a record titled with a stray "n" from the keyboard's suggestion strip and only a screenshot revealed it. Element-path taps already refuse keyboard-occluded targets; the coordinate lane only had a tree-derived warning, and nothing told the caller a keyboard was up at all.

The harmony snapshot producer now derives a keyboard-band fact from the input-method window probe and reports it in the snapshot response's keyboard field; when the band cannot be measured on a build, the response says keyboardBand: unmeasured instead of staying silent. Guards downstream keep working unchanged.

4 files changed (capture fact, harmony producer, snapshot response, tests).

Validation

  • Head: e6fd08062 on a68693c72.
  • pnpm run typecheck, pnpm run lint, keyboard-occlusion and harmony snapshot tests, integration-progress --check, fallow, freerange: pass locally.
  • Independent cold review: APPROVE. CI runs the full gates on push.

šŸ¤– Generated with Claude Code


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