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(clipboard): actually escape powershell commands by NSPC911 · Pull Request #8150 · anomalyco/opencode

Conversation

@NSPC911

@NSPC911 NSPC911 commented Jan 13, 2026 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor

continuation of #7157, hopefully this should be the last one

resolves #8166 hopefully

What does this PR do?

use powershell's auto-escape ability by wrapping strings in single inverted comma ' instead of double inverted comma "

How did you verify your code works?

like just copy it

Before:

 = (Invoke-Expression "Write-Host 'Hello'")

After:

$output = (Invoke-Expression "Write-Host 'Hello'")

Sorry, something went wrong.

Uh oh!

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

All reactions
@NSPC911
fix(clipboard): actually escape powershell commands
cb0b0af
@github-actions github-actions Bot added the needs:issue label Jan 13, 2026
@github-actions

github-actions Bot commented Jan 13, 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.

@github-actions

github-actions Bot commented Jan 13, 2026

Copy link
Copy Markdown
Contributor

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

Based on my search, here are the related PRs to PR #8150:

Related/Potentially Related PRs:

  1. test: cover powershell clipboard escaping #7177 - test: cover powershell clipboard escaping

    • test: cover powershell clipboard escaping #7177
    • Directly related as it adds tests for powershell clipboard escaping
  2. fix(clipboard): add OSC 52 fallback for SSH/tmux environments #7028 - fix(clipboard): add OSC 52 fallback for SSH/tmux environments

    • fix(clipboard): add OSC 52 fallback for SSH/tmux environments #7028
    • Related clipboard fixes that may interact with powershell escaping

These aren't duplicates of PR #8150, but they are closely related PRs in the same clipboard/powershell feature area. PR #8150 appears to be a continuation of issue #7157 as noted in the description.

All reactions

Sorry, something went wrong.

Uh oh!

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

@github-actions github-actions Bot removed the needs:issue label Jan 13, 2026
@Hona Hona mentioned this pull request Jan 18, 2026
fix: Windows evaluating text on copy #9293
Merged
@NSPC911 NSPC911 closed this Jan 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

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.

1 participant

@NSPC911
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.