Skip to content

fix: Accept arrow key codes and keep the keyboard unzoomed - #3

Merged
idy merged 3 commits into
mainfrom
codex/browser-review-fixes
Nov 26, 2026
Merged

idy merged 3 commits into
mainfrom
codex/browser-review-fixes

Conversation

@idy

@idy idy commented Nov 26, 2026 •

Copy link
Copy Markdown
Member

Summary

Follow-up to #2, from its Codex review.

  • Gamepads that report the D-pad as KEY_UP, KEY_DOWN, KEY_LEFT and KEY_RIGHT move focus again, as they did in feat: Add a handheld WPE WebKit browser #1.
  • The on-screen keyboard, toasts and pointer counter-scale the page zoom, so the keyboard keeps its size and fits the 640×480 screen at 200%.

Validation

The ARM64 smoke test adds a step that zooms to 200% with the keyboard open and checks that its on-screen height is unchanged.

Smoke test on the handheld

The smoke test had only run in CI. On an R36S (192.168.4.254) it failed every time at step 5: scrollY is read 600 ms after a single scroll event, and on the handheld the position arrives about 3 s later. A failing check is now retried every 250 ms, up to 16 times. A full run takes about 36 s there, so the deadline is now 90 s instead of 40 s. With these changes all 17 steps pass on the device.

@idy

idy commented Nov 26, 2026

Copy link
Copy Markdown
Member Author

/codex-review

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codex Code Review

✅ No findings.

No actionable defects found in the diff after tracing input handling, zoom behavior, navigation, and packaging integration. ARM64 packaging and device smoke tests were not run in this read-only environment.

Reviewed head ee784490dd65dbeef9bcdc9dfb4274b05cc252f5. Push changes, then comment a new review request to review the new head.

idy added 2 commits November 26, 2026 20:46
On the R36S the right-stick scroll step failed every run: scrollY is read 600 ms after a single scroll event, before WebKit has synced the position back. Recheck a failing step every 250 ms up to 16 times, and drop a pending retry when a navigating step's load finishes.
A full run takes about 36 s on the R36S, against a 40 s deadline.
@idy

idy commented Nov 26, 2026

Copy link
Copy Markdown
Member Author

/codex-review

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codex Code Review

✅ No findings.

No actionable problems found in the complete diff or affected callers. The updated JavaScript passes syntax validation; ARM64 packaging and device behavior could not be tested in this environment.

Reviewed head ca27543e1299949f1e11bd18334c62b66d31904c. Push changes, then comment a new review request to review the new head.

@idy
idy merged commit 77fd4a8 into main Nov 26, 2026
2 checks passed
@idy
idy deleted the codex/browser-review-fixes branch November 26, 2026 15:12
idy added a commit that referenced this pull request Nov 26, 2026
Gizlet OS now reads only `manifest.json` from a `.gzl` (gizlet/os#29).
The package built from `manifest.toml` no longer installs: `gizlet
install` fails with "has no manifest.json".

- Describe the browser in `gizlet.toml` at the repository root,
following the [Gizlet
format](https://github.com/gizlet/gizlet/blob/main/docs/gizlet-toml.md).
It adds an English and a Chinese description.
- `scripts/manifest.py` generates the package's `manifest.json` from
`gizlet.toml` during `package.sh`. The manifest covers the device-facing
fields plus the single package's `target`, `tier` and `entry`.
- CI now watches `gizlet.toml` instead of `manifest.toml`. The README
notes that the build needs Python 3.11 or newer, which `pack.py` already
required.

## Validation

- Ran `scripts/manifest.py` locally against `gizlet.toml`. The resulting
`manifest.json` matches the schema in gizlet/os#29.
- Repacked the PR #3 CI package with that manifest. The `gizlet` CLI
shipped on the 192.168.4.254 handheld installed it, and `gizlet list`
shows `io.gizlet.browser 0.1.0 Browser`.
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