Skip to content

feat: add configurable paste summary thresholds#1960

Closed
kennyfrc wants to merge 1 commit intoanomalyco:devfrom
kennyfrc:summary-threshold
Closed

feat: add configurable paste summary thresholds#1960
kennyfrc wants to merge 1 commit intoanomalyco:devfrom
kennyfrc:summary-threshold

Conversation

@kennyfrc
Copy link
Copy Markdown
Contributor

What this does

  • Adds configurable paste summary thresholds under experimental.editor.summary_thresholds
  • Allows users to customize when pasted text gets converted
  • Maintains current default of 3 lines / 150 characters

Use Case

I use a lot of speech-to-text when programming with OpenCode. Oftentimes, the generated text exceeds the 150 character default, leading it to be truncated. That can be a problem as I might need to do some minor edits on the pasted text.

Configuration Example

{
  "experimental": {
    "editor": {
      "summary_thresholds": {
        "lines": 8,
        "chars": 1024
      }
    }
  }
}

@aspiers
Copy link
Copy Markdown
Contributor

aspiers commented Feb 22, 2026

Hey @kennyfrc curious why you closed this? This is a really useful feature which I think deserves to be merged.

@aspiers
Copy link
Copy Markdown
Contributor

aspiers commented Feb 22, 2026

This would also address 3949 better than the solution proposed there of disabling pasted summaries altogether.

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.

2 participants