Skip to content

Conversation

@ariane-emory
Copy link
Contributor

@ariane-emory ariane-emory commented Nov 26, 2025

Resolves #4751, resolves #2845.

I saw this issue and decided that I'd take a stab at resolving it. This PR adds a tui.copy_on_select setting allowing the copy-on-select behaviour to be disabled if desired. Valid values for this setting are true and false.

Enable it in opencode.jsonc as follows:

"tui": {
  "copy_on_select": false
},

- Resolved conflicts in TUI config schema to include both copy_on_select and diff_style fields
- Updated Go SDK to include both new TUI configuration options
- Maintained copy-on-select feature implementation while incorporating upstream changes
@ariane-emory ariane-emory changed the title feat: Add a tui.copy_on_select setting to allow disabling copy-on-select behaviour (resolves #4751, #2845) feat: Add tui.copy_on_select setting to allow disabling copy-on-select behaviour (resolves #4751, resolves #2845) Nov 26, 2025
@ariane-emory
Copy link
Contributor Author

Some of the churn in packages/sdk/go/config.go looks like it's just a consequence of the Go DK being regenerated.

ariane-emory and others added 17 commits November 27, 2025 06:32
@ariane-emory ariane-emory changed the title feat: Add tui.copy_on_select setting to allow disabling copy-on-select behaviour (resolves #4751, resolves #2845) feat: add tui.copy_on_select setting to allow disabling copy-on-select behaviour (resolves #4751, resolves #2845) Dec 1, 2025
@ariane-emory ariane-emory marked this pull request as draft December 2, 2025 02:50
@ariane-emory ariane-emory marked this pull request as ready for review December 2, 2025 05:39
@andy-blum
Copy link

FYI #4996 may solve this for you

@ariane-emory
Copy link
Contributor Author

@andy-blum indeed, looks like PR#4996 handles the same issue and was already merged. I'll close this PH, then. Thanks for letting me know!

@ariane-emory ariane-emory reopened this Dec 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

How to disable text selection and clipboard overrides? [FEATURE]: Add config option to disable copy-on-select

3 participants