Repository navigation
Conversation
|
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 ( |
|
Thanks for updating your PR! It now meets our contributing guidelines. 👍 |
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
|
Are there any updates on this being merged? |
|
I would also like and need this feature |
|
I was exactly looking for this feature, it's really needed. |
|
This branch has been upgraded to V2. We're no longer taking PRs for V1. If you think this is still relevant, please port it over and open it for V2. — from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊 |
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