Skip to content

[Bug]: Native Android terminal jumps upward when the keyboard opens #14464

Description

@yqecea

Area

apps/mobile

Steps to reproduce

  1. Open a running terminal in the native Android T3 Code app.
  2. Tap the terminal to open the software keyboard.
  3. Repeat hiding and opening the keyboard, including while a full-screen agent CLI is running.

Expected behavior

The terminal and keyboard accessory move with the keyboard, keeping the current input visible without an abrupt upward jump.

Actual behavior

The terminal suddenly jumps upward as the keyboard opens. This is user-observed on native Android. I could not verify the animation on a device because device access is disabled in the current agent environment.

Impact

Major degradation during terminal input on a phone.

Version and investigation

The installed mobile version is unknown. Source inspection used main at c2fa9fc.

ThreadTerminalRouteScreen.tsx computes terminalBottomInset from useKeyboardState and immediately applies it as paddingBottom to the terminal container. In the pinned keyboard-controller source, that hook updates on keyboardWillShow and keyboardDidHide, whereas KeyboardStickyView follows animated keyboard height. Applying the final inset before the keyboard animation is an investigation lead, not a confirmed root cause. I have not patched it without native animation evidence.

Please check opening, closing, interactive dismissal, orientation changes and a second desktop view attached to the same PTY. This report concerns the native Android terminal, not the mobile web scrolling bug #2141. Android terminal input lag is already tracked in #12756 and software Backspace in #8253.

Workaround

No reliable workaround found.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething is broken or behaving incorrectly.via-triageFiled through npx t3 triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions