Skip to content

feat(console): remove hardcoded 10k input character limit#5675

Closed
vinaychauhannumber wants to merge 1 commit into
agentscope-ai:mainfrom
vinaychauhannumber:feat/remove-input-char-limit
Closed

feat(console): remove hardcoded 10k input character limit#5675
vinaychauhannumber wants to merge 1 commit into
agentscope-ai:mainfrom
vinaychauhannumber:feat/remove-input-char-limit

Conversation

@vinaychauhannumber

Copy link
Copy Markdown

Description

Removes the hardcoded sender.maxLength: 10000 from defaultConfig.ts.

Problem (Fixes #5670):
Modern LLMs natively support context windows of 256 k–1 M+ tokens. A hard 10,000-character cap in the input box forces users to:

  • Split long text into temporary files just to pass it to the agent
  • Send content in multiple messages instead of one
  • Lose the convenience of copy-paste for long code, documents, or research

This is especially painful for the target users mentioned in the issue: developers, researchers, and heavy office users.

Fix:
sender.maxLength is removed from the default config object in
console/src/pages/Chat/OptionsPanel/defaultConfig.ts.
The underlying Sender component (from @agentscope-ai/chat) imposes no
limit
when the field is absent, so input length is now bounded only by what
the chosen model can actually accept — not by an arbitrary UI constant.

A comment is left in place of the removed line to explain the intent for future
maintainers.

Type of Change

  • Bug fix
  • New feature / improvement
  • Breaking change
  • Documentation
  • Refactoring

Component(s) Affected

  • Core / Backend (app, agents, config, providers, utils, local_models)
  • Console (frontend web UI)
  • Channels (DingTalk, Feishu, QQ, Discord, iMessage, etc.)
  • Skills
  • CLI
  • Documentation (website)
  • Tests
  • CI/CD
  • Scripts / Deploy

Checklist

  • I ran pre-commit run --all-files locally and it passes
  • If pre-commit auto-fixed files, I committed those changes and reran checks
  • I ran tests locally and they pass
  • Documentation updated (if needed) — N/A for this change
  • Ready for review

Testing

Before: Typing or pasting more than 10,000 characters into the chat input box was blocked / truncated by the Sender component.

After: The chat input box accepts text of any length. Input is limited only by the model's actual context window.

Manual verification steps:

  1. Open the QwenPaw console (qwenpaw app, then http://127.0.0.1:8088)
  2. Paste a block of text exceeding 10,000 characters into the chat input
  3. Before fix: input is cut off at 10,000 chars
  4. After fix: full text is accepted and sent to the model

Closes #5670

Modern LLMs natively support 256k–1M+ token context windows.
Capping the chat input box at 10,000 characters forces users to
split long texts into files or multiple messages, breaking the
copy-paste workflow for heavy users (developers, researchers, etc.).

Removing sender.maxLength from defaultConfig lets the underlying
Sender component accept input of any length, matching the actual
capacity of the configured model.

Closes agentscope-ai#5670
@github-project-automation github-project-automation Bot moved this to Todo in QwenPaw Jul 1, 2026
@github-actions github-actions Bot added the first-time-contributor PR created by a first time contributor label Jul 1, 2026
@github-actions

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown

Welcome to QwenPaw! 🐾

Hi @vinaychauhannumber, thank you for your first Pull Request! 🎉

🙌 Join Developer Community

Thanks so much for your contribution! We'd love to invite you to join the official QwenPaw developer group! You can find the Discord and DingTalk group links under the "Developer Community" section on our docs page:
https://qwenpaw.agentscope.io/docs/community

We truly appreciate your enthusiasm—and look forward to your future contributions! 😊

We'll review your PR soon.


Tip

⭐ If you find QwenPaw useful, please give us a Star!

Star QwenPaw

Staying ahead

Star QwenPaw on GitHub and be instantly notified of new releases.

Your star helps more developers discover this project! 🐾

@zhijianma

zhijianma commented Jul 8, 2026

Copy link
Copy Markdown
Member

@vinaychauhannumber

Long text (10k+) will be supported by converting to file upload format in PR #5854

@zhijianma zhijianma closed this Jul 8, 2026
@github-project-automation github-project-automation Bot moved this from Todo to Done in QwenPaw Jul 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

first-time-contributor PR created by a first time contributor Under Review

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

[Feature]: 建议取消输入框对字符数量的限制

2 participants