[PR #1960] feat: add configurable paste summary thresholds #10135

Closed
opened 2026-02-16 18:14:45 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/1960

State: closed
Merged: No


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
      }
    }
  }
}
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/1960 **State:** closed **Merged:** No --- ## 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 ```json { "experimental": { "editor": { "summary_thresholds": { "lines": 8, "chars": 1024 } } } } ```
yindo added the pull-request label 2026-02-16 18:14:45 -05:00
yindo closed this issue 2026-02-16 18:14:45 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#10135