Skip to content

[Feature]: Auto-grow the iOS mobile composer for long prompts #5783

Description

@saphid

Before submitting

  • I searched existing issues and did not find an iOS-specific duplicate.
  • I am describing a concrete problem or use case.

Area

apps/mobile on iOS.

Problem or use case

The native iOS composer remains short while a prompt grows, so reviewing and editing a multi-paragraph draft requires scrolling inside a small editor. This is the iOS counterpart to Android request #5343.

Proposed solution

Let the iOS native composer report its measured content height and grow from its compact height to a bounded maximum. Once it reaches the maximum, keep internal scrolling enabled. Preserve the draft, selection, cursor position, and reachable send/stop controls while it resizes.

Why this matters

Long prompts become substantially easier to review and edit on an iPhone or iPad without introducing a separate full-screen drafting mode.

Smallest useful scope

Change only the iOS native composer and its React Native adapter. Add focused tests for height clamping and retain the current compact size and maximum-height behavior.

Alternatives considered

A manual expand action would work but adds another control and does not help automatically while drafting. Extending this request to Android would overlap #5343 and would make the first patch broader.

Risks or tradeoffs

The editor must avoid layout feedback loops and must preserve keyboard and cursor behavior. Visible proof should cover a short draft, growth, maximum height, and internal scrolling.

References

Related Android request: #5343.

Contribution

  • I would be open to helping implement this.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions