Skip to content

feat(tui): increase prompt textarea char limit from 2k to 50k#6

Open
ethanolle wants to merge 1 commit intokylemclaren:mainfrom
ethanolle:feature/increase-prompt-char-limit
Open

feat(tui): increase prompt textarea char limit from 2k to 50k#6
ethanolle wants to merge 1 commit intokylemclaren:mainfrom
ethanolle:feature/increase-prompt-char-limit

Conversation

@ethanolle
Copy link
Copy Markdown

Summary

  • Increases the prompt textarea character limit from 2,000 to 50,000 characters
  • Enables advanced use cases like detailed agent prompts and system instructions

Motivation

The current 2k limit is restrictive for users who want to create comprehensive task prompts that include:

  • Multi-step agent workflows with detailed instructions
  • Complex system prompts with examples and scoring rules
  • Embedded documentation and business logic (e.g., matching algorithms)

Changes

Single line change in internal/tui/app.go:

m.promptInput.CharLimit = 50000  // was 2000

Test plan

  • Verified the change compiles successfully
  • Tested pasting ~12k character prompt - works correctly
  • UI remains responsive with larger text content

🤖 Generated with Claude Code

The 2000 character limit is too restrictive for users who want to use
detailed agent prompts or system instructions. This change increases
the limit to 50000 characters, enabling more advanced use cases like:

- Multi-step agent workflows with detailed instructions
- Complex system prompts with examples and scoring rules
- Embedded documentation and business logic

The bubbles textarea component handles large text efficiently, so this
increase has minimal performance impact.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant