Pasting when not in WSL seems to fail, dumping each thing one by one as input #2797

Closed
opened 2026-02-16 17:37:18 -05:00 by yindo · 2 comments
Owner

Originally created by @alanmun on GitHub (Nov 11, 2025).

Originally assigned to: @kommander on GitHub.

Description

Take the below for example:

import { GodRays } from '@react-three/postprocessing'

return (
  <GodRays
    sun={sunRef}
    blendFunction={BlendFunction.Screen} // The blend function of this effect.
    samples={60} // The number of samples per pixel.
    density={0.96} // The density of the light rays.
    decay={0.9} // An illumination decay factor.
    weight={0.4} // A light ray weight factor.
    exposure={0.6} // A constant attenuation coefficient.
    clampMax={1} // An upper bound for the saturation of the overall effect.
    width={Resizer.AUTO_SIZE} // Render width.
    height={Resizer.AUTO_SIZE} // Render height.
    kernelSize={KernelSize.SMALL} // The blur kernel size. Has no effect if blur is disabled.
    blur={true} // Whether the god rays should be blurred to reduce artifacts.
  />
)

It will submit the above almost line by line, I think maybe in 2-3 link chunks for some reason, and then leave the last 2-3 lines in my chat bar.

This seems to only happen in command prompt or MSYS2 terminals. in WSL2 Ubuntu bash it doesn't seem to happen, but i only tried like once so far in ubuntu bash

OpenCode version

1.0.61

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

Windows 11

Terminal

I'm using MSYS + Bash primarily

Originally created by @alanmun on GitHub (Nov 11, 2025). Originally assigned to: @kommander on GitHub. ### Description Take the below for example: ``` import { GodRays } from '@react-three/postprocessing' return ( <GodRays sun={sunRef} blendFunction={BlendFunction.Screen} // The blend function of this effect. samples={60} // The number of samples per pixel. density={0.96} // The density of the light rays. decay={0.9} // An illumination decay factor. weight={0.4} // A light ray weight factor. exposure={0.6} // A constant attenuation coefficient. clampMax={1} // An upper bound for the saturation of the overall effect. width={Resizer.AUTO_SIZE} // Render width. height={Resizer.AUTO_SIZE} // Render height. kernelSize={KernelSize.SMALL} // The blur kernel size. Has no effect if blur is disabled. blur={true} // Whether the god rays should be blurred to reduce artifacts. /> ) ``` It will submit the above almost line by line, I think maybe in 2-3 link chunks for some reason, and then leave the last 2-3 lines in my chat bar. This seems to only happen in command prompt or MSYS2 terminals. in WSL2 Ubuntu bash it doesn't seem to happen, but i only tried like once so far in ubuntu bash ### OpenCode version 1.0.61 ### Steps to reproduce _No response_ ### Screenshot and/or share link _No response_ ### Operating System Windows 11 ### Terminal I'm using MSYS + Bash primarily
yindo added the opentuibug labels 2026-02-16 17:37:18 -05:00
yindo closed this issue 2026-02-16 17:37:18 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Nov 11, 2025):

This issue might be a duplicate of existing issues. Please check:

  • #3343: Cannot paste multiple lines in Windows Terminal and VSCode+Powershell

The described behavior (pasting multi-line snippets queues individual messages line by line instead of being treated as a single paste) matches exactly with the existing issue.

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Nov 11, 2025): This issue might be a duplicate of existing issues. Please check: - #3343: Cannot paste multiple lines in Windows Terminal and VSCode+Powershell The described behavior (pasting multi-line snippets queues individual messages line by line instead of being treated as a single paste) matches exactly with the existing issue. Feel free to ignore if none of these address your specific case.
Author
Owner

@rekram1-node commented on GitHub (Nov 11, 2025):

We are on it

@rekram1-node commented on GitHub (Nov 11, 2025): We are on it
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#2797