Skip to content
Source
Sign inSign up
pingdotgg/t3code

[Bug]: Thread switches and composer menus open the on-screen keyboard on Android tablets #26447

ClosedAnhDuck(GitHub profile, opens in a new tab) opened this issue 0 comments

Before submitting

  • 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

  1. Open the T3 Code web app in Chrome on an Android tablet, or on an Android phone with Chrome's Desktop site turned on (Chrome menu → Desktop site), so the app uses the desktop layout.
  2. Make sure the on-screen keyboard is closed.
  3. Tap another thread in the sidebar. → The keyboard opens.
  4. Dismiss the keyboard. Open the effort picker and pick a level, or open the access-mode menu (Supervised / Full access) and tap outside it to close it. → The keyboard opens.

Expected behavior

The on-screen keyboard stays closed until I tap the composer. That's how the mobile layout behaves on the same device (tested at 384 px): switching threads and picking from these menus doesn't focus the composer.

Actual behavior

200–300 ms after the tap, the composer gets focus. The tap's user activation is still active at that point (navigator.userActivation.isActive === true), so Chrome shows the on-screen keyboard for this programmatic focus. The keyboard covers about half of a landscape tablet screen. It happens on every thread switch, so browsing threads on a tablet means dismissing the keyboard after every tap.

The attached recording (t3-keyboard-popup.gif, T3 Code installed as an app from Chrome, placeholder threads, taps shown as grey dots) shows it: 0:00–0:07, each tap on a sidebar thread opens the keyboard; 0:08, opening the model picker opens it; 0:11–0:14, the effort menu and then the access-mode menu, and closing the access-mode menu opens it again.

Measured on a Xiaomi Pad 7 by attaching Chrome DevTools over ADB and logging focus() calls and Android's ImeTracker output. Same device, browser and keyboard; only the viewport width changed (DevTools device emulation for the phone column):

ActionDesktop layout (1163 px)Mobile layout (384 px, S24+ user agent)
Tap a sidebar thread (3 tries)Composer focused, keyboard requested 3/3No focus change, no keyboard
Pick a reasoning level / close the model pickerComposer focused, keyboard requestedNo focus change
Open the model pickerSearch input focused, keyboard requestedSearch input focused, keyboard requested
Close the access-mode menu by tapping outside itKeyboard opens (seen in the recording, not instrumented)Not tested

The model picker row may be intended (the picker has a search field), but on a touch device it still opens the keyboard every time the picker opens.

Impact

Major degradation or frequent failure

Version or commit

0.1.4-nightly.20261028.3814 (ce66aab), web app at nightly.app.t3.codes installed from Chrome. Tested before #25869, which isn't on nightly yet; on main the access-mode options now live in the effort menu.

Environment

Xiaomi Pad 7, HyperOS 3.0.304 (Android 16), Chrome 156, in a browser tab and as an installed app, landscape and portrait; reproduced with the stock keyboard and a Gboard-based keyboard. Also reproduced on a Samsung Galaxy S24+ in Chrome with Desktop site on, portrait and landscape. Not reproduced on the S24+ or a Pixel 7 in normal mode (mobile layout). Not tested on iPadOS or on other Android tablets.

Logs or stack traces

# Tap on a sidebar thread title, then the composer receives focus:
focus() on DIV[data-testid=composer-editor], 302 ms after a touch on a sidebar thread title,
navigator.userActivation.isActive = true
    at Object.focusAtEnd (assets/composerPlaceholder-D8mPzi36.js)
    at Object.focusAtEnd (assets/_chat-BrT2uOln.js)
    at assets/useStableCallback-B86gD7bj.js

# Android IME log right after (adb logcat ImeTracker):
I/ImeTracker: com.android.chrome: onRequestShow at ORIGIN_CLIENT reason SHOW_SOFT_INPUT fromUser false
I/InputMethodManagerService: IMMS.showCurrentInputLocked(), flags = 0

Screenshots, recordings, or supporting files

Tapping threads and composer menus opens the on-screen keyboard

Workaround

None found inside T3 Code.

Happy to send a PR once this is triaged, if you'd like one.

  1. AnhDuck(GitHub profile, opens in a new tab) added labelsneeds-triage

  2. juliusmarminge closed this

Sign in to join this conversation.