Repository navigation
fix(jetbrains): match VS Code paste collapse thresholds - #14205
Merged
Merged
Conversation
Raise the JetBrains paste collapse thresholds to 15 lines or 4000 characters, matching isCollapsiblePaste in the VS Code webview. The IDE composer has more room than the CLI, whose five lines or 800 characters folded ordinary snippets too early. The CLI is unchanged.
Contributor
Code Review SummaryStatus: No Issues Found | Recommendation: Merge The threshold constants in Files Reviewed (4 files)
Reviewed by deepseek-v4.1-flash · Input: 0 · Output: 0 · Cached: 0 Review guidance: REVIEW.md from base branch |
eshurakov
approved these changes
Sep 16, 2026
This was referenced Sep 17, 2026
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.
What Problem This Solves
The JetBrains paste summary still used the CLI thresholds from #13889: a pasted block collapsed at five lines or 800 characters. The VS Code composer was raised to 15 lines or 4000 characters in #14170, so the two IDE clients collapsed the same paste at different sizes.
Why This Change Was Made
The IDE composer has more room than the terminal. At five lines or 800 characters, ordinary snippets collapsed before they filled the visible input. The JetBrains thresholds now match
isCollapsiblePastein the VS Code webview so both IDE clients behave the same. The CLI keeps its existing limits, since its space is genuinely constrained.User Impact
Pasting into the JetBrains prompt collapses a block into
[Pasted ~N lines]only at 15 lines or 4000 characters. Short and medium pastes are inserted as-is, and the transcript fold follows the same rule.Evidence
./gradlew :frontend:testfrompackages/kilo-jetbrains/passes (full frontend suite, includingPromptPasteCollapseTest,PromptPanelTest, andTextViewTest).