You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Restores copy-on-select as the default on Windows, matching the existing behavior on other platforms. Mouse-up now reaches the existing Selection.copy and clipboard path. Setting OPENCODE_EXPERIMENTAL_DISABLE_COPY_ON_SELECT=true still preserves manual Ctrl+C and right-click copy.
How did you verify your code works?
Checked unset, true, 1, and false flag behavior directly.
Ran bun typecheck in packages/core and packages/tui.
Built the Windows x64 standalone executable and passed its version smoke test.
Sent an SGR mouse selection through Herdr; OpenCode showed the copy toast and the selected text reached the native Windows clipboard.
Passed the repository pre-push typecheck across all 30 runnable tasks.
These are clipboard and selection-related PRs in the TUI package, though none appear to be exact duplicates of PR #44393. The most closely related appears to be #44394, which addresses clipboard copy on Linux as part of what seems to be a broader effort to improve clipboard handling across platforms.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
Issue for this PR
Closes #44392
Type of change
What does this PR do?
Restores copy-on-select as the default on Windows, matching the existing behavior on other platforms. Mouse-up now reaches the existing
Selection.copyand clipboard path. SettingOPENCODE_EXPERIMENTAL_DISABLE_COPY_ON_SELECT=truestill preserves manual Ctrl+C and right-click copy.How did you verify your code works?
true,1, andfalseflag behavior directly.bun typecheckinpackages/coreandpackages/tui.Screenshots / recordings
N/A. No visual change.
Checklist