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]: Large terminal pastes are rejected before reaching the program #37102
I searched existing issues and did not find a duplicate.
I included enough detail to reproduce or investigate the problem.
Area
apps/web
Steps to reproduce
Open a thread's terminal in the web or desktop client.
Run a program accepting bracketed paste, such as an interactive shell or terminal editor.
Paste a large multiline log, JSON document or diff whose encoded terminal input exceeds the terminal.write contract limit of 65,536 UTF-16 code units. With bracketed paste, the opening and closing markers consume 12 units.
Expected behavior
The complete paste reaches the program in order, including Unicode text and bracketed framing.
Actual behavior
The terminal prints [terminal] Schema validation failed. Browser-side Effect RPC validation rejects the entire oversized write before sending it to the server, so none of the paste reaches the program.
Linux web client, real browser, T3 server and native PTY. Desktop uses the same web terminal input path; no packaged desktop verification is claimed. Mobile already chunks terminal pastes.
Logs or stack traces
[terminal] Schema validation failed
Screenshots, recordings, or supporting files
The accompanying fix includes a real-app scenario that pastes multiline Unicode text into a raw-mode receiver and compares the received bytes with the exact encoded paste. It fails on the base and passes with the fix. Found by the terminal improvement bughunt with GPT 6.1 Sol and independently confirmed by Claude Opus 5.5.
Workaround
Paste smaller sections or transfer the text as a file.
Activity