Skip to content

[V1.4.1] Chat input box expands unexpectedly when pasting large content from Agent.md in Settings > general #416

Description

@Koyukopan

Description

When a large amount of text from Agent.md in General Settings is pasted into the CraftBot chat input, the chat box expands significantly and takes up a large portion of the screen.
The input box should have a maximum height and become scrollable once the pasted content exceeds that height, instead of continuing to expand.

Steps to Reproduce

  1. Open CraftBot.
  2. Go to Settings → General Settings.
  3. Copy the content of Agent.md.
  4. Open a chat.
  5. Paste the copied content into the chat input box.

Current Behavior

The chat input box expands vertically based on the pasted content and can occupy a large portion of the chat screen.

Expected Behavior

The chat input box should

  • Expand only up to a reasonable maximum height.
  • Show an internal scrollbar when the content exceeds that height.
  • Keep the main chat area visible and usable.

Screenshot

See the attached screenshot for an example of the issue.

Image

Additional Notes

This should likely be reproducible with any sufficiently large pasted text, not only Agent.md.

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions