feat(tui): add configurable paste summary thresholds#15771
Open
aspiers wants to merge 1 commit intoanomalyco:devfrom
Open
feat(tui): add configurable paste summary thresholds#15771aspiers wants to merge 1 commit intoanomalyco:devfrom
aspiers wants to merge 1 commit intoanomalyco:devfrom
Conversation
1 task
Contributor
|
The following comment was made by an LLM, it may be inaccurate: Based on my search, I found one potentially related PR: Related PR:
Why it's related: This PR likely implemented the paste summary/collapse feature that the current PR (15771) is now making configurable. The current PR adds configurable thresholds ( |
Contributor
|
Thanks for updating your PR! It now meets our contributing guidelines. 👍 |
6 tasks
Add paste_min_lines (default: 3) and paste_min_length (default: 150) to experimental config, allowing users to tune when pasted content gets summarised rather than inserted inline.
3c8707f to
5beb651
Compare
6 tasks
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 #15767
Type of change
What does this PR do?
Add
paste_min_linesandpaste_min_lengthto the experimental config section. These let users control when pasted content gets collapsed into[Pasted ~N lines]instead of being inserted inline.The hardcoded thresholds (3 lines / 150 characters) are too aggressive for voice dictation users — dictated text routinely exceeds 150 characters in a single utterance, making it impossible to review and correct transcription errors. The only existing workaround (
disable_paste_summary: true) removes paste summaries entirely, which is undesirable when pasting large content like stack traces.Both settings are optional and default to the current values (3 and 150), so existing behaviour is unchanged.
How did you verify your code works?
Set both values in
opencode.jsonand confirmed paste summary triggers at the configured thresholds rather than the defaults.Screenshots / recordings
N/A — no UI changes, only threshold logic.
Checklist