Skip to content

perf(ios): reuse verified screens after number taps - #606

Open
JosssphZhou wants to merge 2 commits into
test/047-candidatefrom
perf/esp-1162-fresh-screen
Open

JosssphZhou wants to merge 2 commits into
test/047-candidatefrom
perf/esp-1162-fresh-screen

Conversation

@JosssphZhou

Copy link
Copy Markdown
Owner

Summary of changes

Start reading immediately after a single number-key tap when the current screen has an identifiable numeric display. Reuse the first verified screenshot after a second tree confirms the same app, layout, and value.

If the observation remains unconfirmed, read again without repeating the tap. When a fresh screenshot is unavailable, omit the cached image from the action reply.

Motivation

A fixed pause delayed each screen read even when the display had already updated.

Test plan

  • Alternated 20 runs per build through in-app chat on one iPhone simulator, using a scripted model and a numeric keypad fixture. Median time from input completion to the action log fell from 933 ms to 496 ms. All 40 runs delivered the expected value and screenshot with one tap.
  • Checked delayed updates, an animated transition, and no change on the simulator. Ran four focused PokiCore tests on the final patch, including stale and unavailable screenshots. Both new regressions fail on the baseline.

Screenshots or screen recording

The simulator capture shows 7 in the display above the separate 7 key. The captured image and each sample are in the acceptance evidence.

AI assistance: Codex. I have reviewed and understand these changes.

@ZhehanZhang ZhehanZhang added the area:ios-app Standalone Poki iPhone app or Poki Setup label Nov 21, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:ios-app Standalone Poki iPhone app or Poki Setup

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants