You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: Prompt limit message shows the excess, which reads like the prompt's length #35776
Paste a prompt of about 238,000 characters into the composer.
Press send.
Expected behavior
The message makes clear how long the prompt is and how much needs to go. For example: "Prompt is 238,809 characters, over the 120,000 limit. Remove 118,809 characters or split it before sending."
Actual behavior
The composer shows "Prompt is 118,809 characters over the 120,000-character limit. Shorten or split it before sending."
The number is the excess, but it reads like the prompt's length. 118,809 is below 120,000, so it looks as if the composer is blocking a prompt that fits. In practice the prompt was 238,809 characters and needed about half of it cut.
The message comes from getComposerPromptLengthValidationMessage in apps/web/src/components/chat/composerSubmission.ts, which only formats excessCharacters.
Activity
fix(web): clarify prompt length validation message (pingdotgg#35776)