[PowerShell] Certain special characters have still not been escaped #5219

Closed
opened 2026-02-16 17:50:06 -05:00 by yindo · 0 comments
Owner

Originally created by @NSPC911 on GitHub (Jan 13, 2026).

Originally assigned to: @Hona on GitHub.

Description

Asked Copilot for a powershell related question it gave me a response with the $ sign for variables

$output = New-TemporaryFile

but the copied string is

 = New-TemporaryFile

Plugins

Nil

OpenCode version

1.1.15

Steps to reproduce

  1. Ask any LLM to reply with only $file = New-TemporaryFile
  2. Copy it

Screenshot and/or share link

No response

Operating System

Windows 11

Terminal

Wezterm

Originally created by @NSPC911 on GitHub (Jan 13, 2026). Originally assigned to: @Hona on GitHub. ### Description Asked Copilot for a powershell related question it gave me a response with the `$` sign for variables ```pwsh $output = New-TemporaryFile ``` but the copied string is ```pwsh = New-TemporaryFile ``` ### Plugins Nil ### OpenCode version 1.1.15 ### Steps to reproduce 1. Ask any LLM to reply with only `$file = New-TemporaryFile` 2. Copy it ### Screenshot and/or share link _No response_ ### Operating System Windows 11 ### Terminal Wezterm
yindo added the windowsopentuibug labels 2026-02-16 17:50:06 -05:00
yindo closed this issue 2026-02-16 17:50:06 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#5219