[Bug] Paste confirmation shows character count, not line count
Description
After pasting into the composer, the placeholder shown is always [Paste #N: X chars] a character count. For a multi-line paste, which is the common case (pasting a code block, a log, a stack trace), a line count would tell the user more at a glance than a character count.
Parent: #907
Steps to Reproduce
- Copy a multi-line block of code.
- Paste it into the composer.
- Look at the placeholder text.
Expected Behavior
For a multi-line paste, something like [Paste #1: 7 lines].
Actual Behavior
Always [Paste #1: 157 chars], regardless of how many lines were pasted.
Recording
Root Cause
source/utils/paste-utils.ts formatPasteDisplayText always formats as `[Paste #${ordinal}: ${size} chars]`, where size is pastedText.length.
Suggested Fix
Show line count instead of (or alongside) character count when the pasted text spans more than one line.
Additional Context
- [x] I have searched existing issues to ensure this is not a duplicate
- [x] I can reproduce this issue consistently
- [x] This issue occurs on the latest
main
Hey @akramcodez, I’m interested in working on this... could you assign this to me?