Skip to content

Composer input is covered by the system navigation bar on gesture/3-button nav devices #6

Closed

Description

@talwayh1

Bug description

On Android devices with gesture navigation (full-screen gestures) or 3-button navigation, the prompt composer at the bottom of a session is partially covered by the virtual navigation bar. The text field and the send button are hard to see and tap.

This happens because the app calls enableEdgeToEdge() (content extends behind the system bars) while the composer's bottom container only applies imePadding() — which handles the software keyboard but not the system navigation bar insets.

Steps to reproduce

  1. Install the Android client (v1.0.1) and connect it to a Codeg server.
  2. Open or start a session.
  3. With the keyboard closed, look at the composer pinned at the bottom of the screen.
  4. On a device with gesture navigation (e.g. Xiaomi MIUI/HyperOS with full-screen gestures — especially with the gesture hint bar enabled), the lower part of the composer is hidden behind the gesture bar. The send button and part of the text field become hard to reach.

Expected behavior

The composer (text field + send button) should sit fully above the system navigation bar with no overlap, regardless of the navigation mode.

Actual behavior

The bottom of the composer is covered by the virtual navigation bar when the keyboard is closed. When the keyboard opens, imePadding() kicks in and the overlap disappears — confirming the issue is specifically the missing navigation-bar insets handling.

Environment

  • Device: Xiaomi (MIUI/HyperOS, gesture navigation with visible gesture hint bar)
  • Android: 12+ (app minSdk 31, targets API 36)
  • App version: v1.0.1
  • More affected devices: any device with on-screen navigation (Samsung, Pixel gesture mode, etc.)

Root cause (from source)

  • MainActivity.kt: calls enableEdgeToEdge() — UI extends behind system bars by design.
  • SessionDetailScreen.kt bottomBar: Column(Modifier.imePadding()) — no navigationBarsPadding(), so the composer ignores navigation-bar insets.
  • AgentDetailScreen.kt: Column(Modifier.fillMaxSize().imePadding()) — same issue in the agent editor (the bottom save/action area).

Proposed fix

Add navigationBarsPadding() after imePadding() on both bottom-anchored containers. See PR #5.

Column(Modifier.imePadding().navigationBarsPadding()) { ... }
  • Keyboard open: IME already consumes the navigation-bar area → no extra padding.
  • Keyboard closed: navigationBarsPadding() lifts the composer above the navigation bar.

Activity

  1. xintaofei commented on Nov 14, 2026

    @xintaofei
    Owner

    Thanks for the clear report and root-cause analysis. Fixed on main; it will ship with the next release.

    The navigation-bar inset is now applied inside the composer itself: the composer's surface runs on under the gesture / 3-button bar, while the text field and send button sit fully above it. With the keyboard open, the screen's IME padding has already taken that space, so nothing is added twice. Verified on both gesture navigation and 3-button navigation.

    (PR #5 was closed in favour of this fix — see the note there for why the outer padding wasn't needed.)

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions