Skip to content

fix(workbot): keep the message box above the Android keyboard - #7455

Merged
reachjalil merged 1 commit into
devfrom
fix/workbot-android-keyboard
Nov 17, 2026
Merged

reachjalil merged 1 commit into
devfrom
fix/workbot-android-keyboard

Conversation

@reachjalil

Copy link
Copy Markdown
Member

What is this about?

Workbot in a phone browser on Android: the message box now stays on top of the keyboard while you type.

What problem does it solve?

On Android Chrome, opening the keyboard hid the lower half of the message box, so people could not see what they were typing.

What was the situation before?

With the keyboard open, only the top of the message box showed above it and the typed text was cut off at the keyboard's edge. Seen in Chrome on a phone with gesture navigation.

How is this implemented?

  • ee/apps/workbot/src/client/index.html: the viewport meta adds interactive-widget=resizes-content, so Android browsers resize the page for the keyboard instead of covering it. Safari ignores the key and keeps its current path.
  • Before, the page's height on Android came only from visualViewport.height, which was taller than the space the keyboard left.
  • ee/packages/workbot-ui/src/viewport.ts: the keyboard check reads window.innerHeight, so it also reruns on a window resize.

What else changed?

  • ee/apps/workbot/test-fixtures/chat-screen-server.ts serves the same viewport meta as the app.
  • ee/apps/workbot/scripts/scroll-browser.mjs asserts that the whole message box stays in view when the page shrinks for a keyboard.

Release note

On Android, the keyboard no longer hides the Workbot message box while you type.

Evidence

No E2E spec: an Android keyboard is not emulated in CI. ee/apps/workbot/scripts/scroll-browser.mjs checks, in desktop Chromium at phone size, that the whole message box stays above the keyboard when the page shrinks for it. Not yet checked on an Android phone.

On Android Chrome with gesture navigation, opening the keyboard left the
lower half of the message box behind it. Workbot sizes its page from
visualViewport.height, and with the keyboard covering the page (the
browser default) that height was about 36px taller than the space the
keyboard left on the phone that showed it.

Ask Android to resize the page itself with
interactive-widget=resizes-content, so the layout viewport, 100dvh and
the visual viewport agree and the box sits on the keyboard. Safari
ignores the key and keeps the visual viewport path in viewport.ts.

The keyboard check in viewport.ts reads window.innerHeight, so it now
also reruns on a window resize. scroll-browser.mjs asserts that the
message box stays fully in view when the page shrinks for a keyboard.

Signed-off-by: Jalil <reachjalil@gmail.com>
@vercel

vercel Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

3 Skipped Deployments
Project Deployment Actions Updated
openwork-app Skipped Skipped Nov 17, 2026 12:19am UTC
openwork-den Skipped Skipped Nov 17, 2026 12:19am UTC
openwork-landing Skipped Skipped v0 Nov 17, 2026 12:19am UTC

Request Review

@vercel
vercel Bot temporarily deployed to Preview – openwork-den November 17, 2026 00:19 Inactive
@vercel
vercel Bot temporarily deployed to Preview – openwork-app November 17, 2026 00:19 Inactive
@vercel
vercel Bot temporarily deployed to Preview – openwork-landing November 17, 2026 00:19 Inactive
@reachjalil
reachjalil merged commit 5b31b0f into dev Nov 17, 2026
19 checks passed

This branch was previously deployed

3 inactive deployments
Preview – openwork-app — be1c95ef Deployed Nov 17, 2026 by vercel[bot]
Preview – openwork-landing — be1c95ef Deployed Nov 17, 2026 by vercel[bot]
Preview – openwork-den — be1c95ef Deployed Nov 17, 2026 by vercel[bot]
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