Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prompt text input truncated in TUI #403

Open
bart-jaskulski opened this issue Dec 10, 2024 · 2 comments
Open

Prompt text input truncated in TUI #403

bart-jaskulski opened this issue Dec 10, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@bart-jaskulski
Copy link

bart-jaskulski commented Dec 10, 2024

Describe the bug
Entering input in TUI mode truncates text exceeding 400 chars.

Setup
Please complete the following information along with version numbers, if applicable.

  • OS: Ubuntu 24.10
  • Shell: bash
  • Terminal Emulator: st
  • Terminal Multiplexer: tmux

To Reproduce
Steps to reproduce the behavior:

  1. Open mods in TUI mode (mods without arguments)
  2. Either paste, write or enter in editor a content which exceeds 400 characters
  3. Content is truncated in input field to 400 chars. The exceeding chars are removed and not included in prompt sent to AI

Source Code
Just paste in TUI: https://www.lipsum.com/feed/html

Expected behavior
Text input is not limited to any amount of characters or at least is limited to max-input-chars from mods settings.

Screenshots
asciicast

Additional context
This doesn't seem to be related to max-input-chars settings, as value there was generous (in my setup max-input-chars: 392000)

@caarlos0 caarlos0 added the bug Something isn't working label Jan 14, 2025
@roychri
Copy link

roychri commented Jan 16, 2025

Could this be related to gum write ?
It seems to be related to the number of lines (Max 99 lines) when I use gum write.
I am not sure if mods uses the same mecanism...

How to reproduce with gum write:

seq 1 102 | gum write

You will see it stops at line 99 and you cannot add more lines with Ctrl-J

When I copy 102 lines in my clipboard (seq 1 102 | clip.exe from WSL) and then starts mods and press Ctrl-E to start the editor and paste those 102 lines, save and exit my editor, mods only show the first 99 lines.

@roychri
Copy link

roychri commented Jan 16, 2025

I think this is related to this:
charmbracelet/huh#501

How do we get this latest update into mods?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants