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
fix(cli): readStdin uses string.length instead of byte length for size limits #23417
readStdin() in packages/cli/src/utils/readStdin.ts defines the stdin size limit as 8 * 1024 * 1024 (8 MB in bytes), but enforces it using string.length after process.stdin.setEncoding('utf8').
If you believe this is not a duplicate, please remove the status/possible-duplicate label.
Clarification: this is not a duplicate.
I previously opened #23537 for the same root cause, and merged it into this issue (#23417) to keep tracking in one place. #23537 is now closed as part of that consolidation.
@GoBeromsu, thank you for identifying this byte-accuracy bug in readStdin. Since you've indicated you're working on a PR to align it with the readStdinLines fix, I've marked this as help wanted.
Activity
gemini-cli commentedon Mar 23, 2026
Found possible duplicate issues:
If you believe this is not a duplicate, please remove the
status/possible-duplicatelabel.GoBeromsu commentedon Mar 23, 2026
Clarification: this is not a duplicate.
I previously opened #23537 for the same root cause, and merged it into this issue (#23417) to keep tracking in one place. #23537 is now closed as part of that consolidation.
Additionally:
readStdinLines.tswas already fixed in PR feat(cli): allow -i/--prompt-interactive with piped stdin #23414readStdin.tsI’ve updated the issue description accordingly and will follow up with a PR.
devr0306 commentedon Apr 27, 2026
Triage Summary
@GoBeromsu, thank you for identifying this byte-accuracy bug in
readStdin. Since you've indicated you're working on a PR to align it with thereadStdinLinesfix, I've marked this ashelp wanted.