Skip to content

[Bug]: Large terminal pastes are rejected before reaching the program #37102

Closed

Description

@StiensWout

Before submitting

  • 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

  1. Open a thread's terminal in the web or desktop client.
  2. Run a program accepting bracketed paste, such as an interactive shell or terminal editor.
  3. 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.

Impact

Minor bug or occasional failure

Version or commit

Reproduced on upstream main at d738edf.

Environment

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

  1. added
    vouch:trusted
    on Nov 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    vouch:trusted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions