Skip to content

Prompt input box does not auto-expand while typing long prompts #102

Description

@Ramahadam

System Info / 系統信息

Operating System: macOS (Chrome browser)

Browser: Google Chrome (latest stable version)

GLM Web Chat

No GPU/CUDA/Python environment involved, as this issue occurs in the web interface.

Who can help? / 谁可以帮助到您?

No response

Information / 问题信息

  • The official example scripts / 官方的示例脚本
  • My own modified scripts / 我自己修改的脚本和任务

Reproduction / 复现过程

Steps to reproduce the behavior:

  1. Open a new conversation in the GLM web interface.
  2. Type or paste a long, multi-line prompt.
  3. Continue typing until the content exceeds the height of the input box.
  4. Notice that the input field remains a fixed height and becomes scrollable instead of expanding.

Current behavior:

  • The prompt input has a fixed height.
  • Users must scroll inside the text box to review or edit long prompts.
  • Editing long prompts becomes inconvenient because only a small portion of the prompt is visible at any time.

This issue is reproducible every time.

Expected behavior / 期待表现

The prompt input box should automatically expand vertically as the user types, similar to modern chat interfaces.

Suggested behavior:

  • Increase the height of the input field as additional lines are entered.
  • Shrink back when content is removed.
  • Only enable scrolling after reaching a reasonable maximum height.

This provides a much better writing and editing experience for long prompts and eliminates the need to constantly scroll inside the input field.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions