Skip to content

feat(tui): make paste summary thresholds configurable#14713

Closed
aspiers wants to merge 1 commit intoanomalyco:devfrom
aspiers:paste-summary-config
Closed

feat(tui): make paste summary thresholds configurable#14713
aspiers wants to merge 1 commit intoanomalyco:devfrom
aspiers:paste-summary-config

Conversation

@aspiers
Copy link
Copy Markdown
Contributor

@aspiers aspiers commented Feb 22, 2026

Closes #14712

What this does

Adds two optional fields to the experimental config 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 existing disable_paste_summary flag 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

  • Flat key naming is consistent with existing experimental config style
  • No new tests added — no other experimental config fields have tests
  • Prior art: PR feat: add configurable paste summary thresholds #1960 attempted this with a nested experimental.editor.summary_thresholds structure; this uses flat keys for consistency

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.
@github-actions github-actions bot added the needs:compliance This means the issue will auto-close after 2 hours. label Feb 22, 2026
@github-actions
Copy link
Copy Markdown
Contributor

This PR doesn't fully meet our contributing guidelines and PR template.

What needs to be fixed:

  • PR description is missing required template sections. Please use the PR template.

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.

@github-actions
Copy link
Copy Markdown
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.

@github-actions github-actions bot closed this Feb 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

contributor needs:compliance This means the issue will auto-close after 2 hours.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(tui): make paste summary thresholds configurable

1 participant