You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: iOS Safari keyboard hides the web composer and scrolls the header off-screen #19512
I searched existing issues and did not find a duplicate.
I included enough detail to reproduce or investigate the problem.
Area
apps/web
Steps to reproduce
Open the T3 Code web client in Safari on an iPhone (portrait).
Open a thread and tap the composer so the on-screen keyboard opens.
Expected behavior
The header stays at the top of the screen and the composer sits directly above the keyboard, with the timeline shrinking in between (what Chromium already does via interactive-widget=resizes-content).
Actual behavior
iOS Safari ignores interactive-widget=resizes-content. The keyboard only shrinks visualViewport and Safari pans the page to reveal the field, so:
the header (sidebar toggle, title, panel controls) scrolls off the top of the screen;
the composer's bottom row (model picker, send) ends up behind the keyboard, because the shell and route insets are sized with h-dvh/h-svh, which iOS does not shrink for the keyboard.
Impact
Major degradation or frequent failure
Version or commit
Nightly 0.0.46-nightly.20261013.3066; also on main at 7ac952c.
Environment
iPhone, iOS Safari, portrait. Screenshots below are from Chrome iPhone emulation (390x844 and 360x780) with a 336px keyboard simulated by stubbing window.visualViewport and panning the page the way Safari does.
Screenshots, recordings, or supporting files
Keyboard open (390 wide)
Keyboard open (360 wide)
Measured with the keyboard open at 390x844: header at y = -279 to -227 (off-screen); composer form bottom at 549 while the keyboard starts at 508.
Workaround
None in Safari. Closing the keyboard restores the layout.
data-viewport-sync is unset on both main and #19513's head at that size: the gate is (max-width: 639px) and (pointer: coarse), so nothing runs on a tablet. The shell stays h-dvh, the command-menu layer is positioned from window.innerHeight, and the terminal drawer is bottom-anchored, so all three sit under the keyboard. While typing, the caret is 225px below the visible area, which is the pan Safari applies on every caret move.
The only thing emulated is which viewport the platform keyboard shrinks: window.visualViewport is stubbed while innerHeight and documentElement.clientHeight keep their values, which is what iPadOS does. The HTML/CSS/JS under test is the shipped app.
Fix direction: widen #19513's gate from portrait phones to any coarse-pointer device so its data-viewport-sync rules cover tablets, and have ComposerCommandMenuLayer re-measure on visualViewportresize/scroll (it listens to window resize/scroll only), since the menu is portaled to body and bottom-anchored to the layout viewport.
Note
Responses generated with Claude (model: Claude Opus 5.5)
Activity
kaovilai commentedon Nov 4, 2026
On an iPad this is the same defect, and it is still there on
mainand on #19513.iPad Air landscape, 1080x810 window (desktop-width layout), keyboard covering the bottom 320px:
/menumainresizes-content(Android/desktop)data-viewport-syncis unset on bothmainand #19513's head at that size: the gate is(max-width: 639px) and (pointer: coarse), so nothing runs on a tablet. The shell staysh-dvh, the command-menu layer is positioned fromwindow.innerHeight, and the terminal drawer is bottom-anchored, so all three sit under the keyboard. While typing, the caret is 225px below the visible area, which is the pan Safari applies on every caret move.Two ways to see it:
100dvhshell, the composer as the last in-flow row, and a portaled menu positioned fromwindow.innerHeight. Open it on an iPad and tap the composer; the readout printskeyboard covers composer Npxfrom the real keyboard. On a desktop browser the "Simulate iPadOS keyboard" button produces the same state, so checking this does not require owning the device.mainon the left and fix(web): iPhone keyboard no longer hides the composer or scrolls the header away #19513 on the right: https://github.com/kaovilai/gha-sandbox/actions/runs/41843666211 — composer, slash menu, terminal, Chromium contrast. The dashed red line is the keyboard's top edge, drawn where the opaque keyboard strip was covering it.The only thing emulated is which viewport the platform keyboard shrinks:
window.visualViewportis stubbed whileinnerHeightanddocumentElement.clientHeightkeep their values, which is what iPadOS does. The HTML/CSS/JS under test is the shipped app.Fix direction: widen #19513's gate from portrait phones to any coarse-pointer device so its
data-viewport-syncrules cover tablets, and haveComposerCommandMenuLayerre-measure onvisualViewportresize/scroll(it listens to windowresize/scrollonly), since the menu is portaled tobodyand bottom-anchored to the layout viewport.Note
Responses generated with Claude (model: Claude Opus 5.5)