GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix: Windows evaluating text on copy by Hona · Pull Request #9293 · anomalyco/opencode

Conversation

@Hona

@Hona Hona commented Jan 18, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

What does this PR do?

Fixes #8166

copying text like

image

on windows would expand these variables because it uses powershell

changes to use stdin - the same as linux clipboard

I found a duplicate PR - however mine stays consistent with linux
#8150

How did you verify your code works?

copying the same text on latest release and my branch on windows

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

nielpattin reacted with heart emoji
All reactions
  • ❤️ 1 reaction
@Hona
fix: Windows evaluating text on copy
eb60b9d
Copilot AI review requested due to automatic review settings January 18, 2026 21:48
@github-actions github-actions Bot added the needs:issue label Jan 18, 2026
@github-actions

github-actions Bot commented Jan 18, 2026

Copy link
Copy Markdown
Contributor

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Copilot started reviewing on behalf of Hona January 18, 2026 21:48
View session
@github-actions

github-actions Bot commented Jan 18, 2026

Copy link
Copy Markdown
Contributor

The following comment was made by an LLM, it may be inaccurate:

Based on my search, I found 3 potentially related PRs that deal with Windows/WSL clipboard functionality:

  1. PR fix(tui): support clipboard image paste with proper filename on WSL2 #8209: fix(tui): support clipboard image paste with proper filename on WSL2

    • fix(tui): support clipboard image paste with proper filename on WSL2 #8209
    • Related: Addresses clipboard handling on Windows/WSL2
  2. PR fix(tui): fix Ctrl+V paste on Windows/WSL2 (#6560 and #8209) #8626: fix(tui): fix Ctrl+V paste on Windows/WSL2 (#6560 and #8209)

    • fix(tui): fix Ctrl+V paste on Windows/WSL2 (#6560 and #8209) #8626
    • Related: Fixes paste operations on Windows/WSL2, may involve similar stdin/powershell changes
  3. PR feat: add input_copy and input_cut keybindings for keyboard-based text selection #7520: feat: add input_copy and input_cut keybindings for keyboard-based text selection

    • feat: add input_copy and input_cut keybindings for keyboard-based text selection #7520
    • Related: Addresses copy operations, though appears to be a feature rather than a fix

These PRs all touch the clipboard handling layer on Windows/WSL environments. You should verify if any address the same variable expansion issue or if they've already fixed this problem.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Copilot AI reviewed Jan 18, 2026
View reviewed changes

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes an issue on Windows where copying text containing PowerShell variables (like $env:FOO) would cause those variables to be evaluated/expanded due to PowerShell's string interpolation when passed as command-line arguments.

Changes:

  • Modified Windows clipboard implementation to use stdin instead of command-line arguments
  • Added explicit UTF-8 encoding configuration for PowerShell's input stream
  • Aligned Windows implementation pattern with existing Linux clipboard implementations

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@github-actions github-actions Bot removed the needs:issue label Jan 18, 2026
@rekram1-node
rekram1-node merged commit e81bb86 into anomalyco:dev Jan 18, 2026
12 checks passed

Uh oh!

There was an error while loading. Please reload this page.

Rwanbt pushed a commit to Rwanbt/unifia that referenced this pull request May 5, 2026
@Hona
fix: Windows evaluating text on copy (anomalyco#9293)
31ec224
AIALRA-0 pushed a commit to AIALRA-0/opencode-turn-engine that referenced this pull request Jun 10, 2026
@Hona
fix: Windows evaluating text on copy (anomalyco#9293)
fd0f6f7
Rwanbt pushed a commit to Rwanbt/unifia that referenced this pull request Jun 14, 2026
@Hona
fix: Windows evaluating text on copy (anomalyco#9293)
ce3c544
MarsQiu007 referenced this pull request in MarsQiu007/openNovel Jul 31, 2026
@Hona
fix: Windows evaluating text on copy (#9293)
81bdb0f
meSingh pushed a commit to meSingh/opencode that referenced this pull request Sep 6, 2026
@Hona
fix: Windows evaluating text on copy (anomalyco#9293)
abc004a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

Copilot code review Copilot
Copilot review effort
Applies to this pull request for everyone.Learn more about Copilot code review.
Copilot left review comments

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

[PowerShell] Certain special characters have still not been escaped

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@Hona @rekram1-node
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.