Skip to content

Pasted code sometimes cuts off when run #8483

@ErikPoppleton

Description

@ErikPoppleton

Pre-submit Checks

Describe the bug

When I paste large blocks of code in SSH sessions, they appear fine in the terminal, but when executed, the start of random lines are cut off in the interpreter and the commands fail. I think it has something to do with the SSH wrapper, as I have only observed this during SSH sessions, but that's also where I paste large blocks of code. It also only seems to happen to specific lines, but I have no intuition which lines are going to be affected. When a line is affected, that line is always affected when the block is re-run, though the number of cut-off characters sometimes changes.

To reproduce

For example, if I paste the lines:

module purge
module load gromacs/2023.3
gmx select -f umbrella0/md.gro -s umbrella0/md.tpr -on C2.ndx -select "name C2"
gmx traj -f ../run2/md.xtc -s ../run2/md.tpr -com -n C2.ndx -nox -noy -ox C2_z.xvg

the gmx select command throws a bash error:

bash: ect: command not found

e.g the start of the line is cut off
The surrounding lines all run fine (or rather, the next line fails because the output file from the select command is missing)

Expected behavior

Pasting code into the terminal should run the pasted code.

Screenshots, videos, and logs

Image

Operating system (OS)

MacOS (local) / Linux (ssh session)

Operating system and version

MacOS 15.7.3 (local) / SUSE Linux Enterprise Server 15 SP6 (ssh session)

Shell Version

zsh 5.9 (local) / bash 4.4.23 (ssh)

Current Warp version

v0.2026.01.07.08.13.stable_01

Regression

No, this bug or issue has existed throughout my experience using Warp

Recent working Warp date

No response

Additional context

No response

Does this block you from using Warp daily?

Yes, this issue prevents me from using Warp daily.

Is this an issue only in Warp?

Yes, I confirmed that this only happens in Warp, not other terminals.

Warp Internal (ignore): linear-label:b9d78064-c89e-4973-b153-5178a31ee54e

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    BUGBugs, Hangs, Crash, and Freezes

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions