feat(tui): make paste summary thresholds configurable#14713
Closed
aspiers wants to merge 1 commit intoanomalyco:devfrom
Closed
feat(tui): make paste summary thresholds configurable#14713aspiers wants to merge 1 commit intoanomalyco:devfrom
aspiers wants to merge 1 commit intoanomalyco:devfrom
Conversation
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.
Contributor
|
This PR doesn't fully meet our contributing guidelines and PR template. What needs to be fixed:
Please edit this PR description to address the above within 2 hours, or it will be automatically closed. If you believe this was flagged incorrectly, please let a maintainer know. |
Contributor
|
This pull request has been automatically closed because it was not updated to meet our contributing guidelines within the 2-hour window. Feel free to open a new pull request that follows our guidelines. |
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.
Closes #14712
What this does
Adds two optional fields to the
experimentalconfig block:paste_min_lines— minimum line count before pasted content is summarised (default:3)paste_min_length— minimum character length before pasted content is summarised (default:150)Both default to the current hardcoded values, so existing behaviour is fully preserved for anyone who doesn't set them.
Why
The current thresholds are too aggressive for users of voice dictation software (e.g. Whisper Flow, Whispering). A single dictated utterance frequently exceeds 150 characters, causing it to be immediately collapsed into
[Pasted ~1 lines]— making it impossible to spot and correct small transcription errors. The existingdisable_paste_summaryflag is a blunt workaround that sacrifices the feature entirely, which is painful when you then paste a large file or stack trace.Configuration example
{ "experimental": { "paste_min_lines": 6, "paste_min_length": 500 } }Notes
experimental.editor.summary_thresholdsstructure; this uses flat keys for consistency