René's URL Explorer Experiment


Title: feat(ui): add bracketed paste with large-paste marker collapsing by jeoor · Pull Request #102 · lessweb/deepcode-cli · GitHub

Open Graph Title: feat(ui): add bracketed paste with large-paste marker collapsing by jeoor · Pull Request #102 · lessweb/deepcode-cli

X Title: feat(ui): add bracketed paste with large-paste marker collapsing by jeoor · Pull Request #102 · lessweb/deepcode-cli

Description: Summary When pasting a large block of text (>10 lines or >1000 characters), the content is replaced with a compact marker like [paste #1 +63 lines] instead of inserting the full text. Features Bracketed paste detection — Detects ESC[200~ / ESC[201~ and dispatches pasted text as a single atomic event Large paste collapsing — Pastes >10 lines or >1000 chars are stored and replaced with a compact marker Ctrl+O toggle — Expand to view/edit full content, collapse back to marker (with setTimeout(0) to mitigate rendering issues) Atomic deletion — Backspace/delete on a paste marker removes the entire marker at once Auto-expand on submit — Markers are expanded to full content before sending to the LLM Yellow highlighting — Markers are highlighted with chalk.yellow Lazy text cleaning — Control char filtering and line ending normalization are deferred to expand/submit time Array-based chunk buffering — Uses chunks[] instead of string += concatenation to avoid O(n²) on multi-chunk pastes Implementation File Changes src/ui/prompt/useTerminalInput.ts Paste bracketing: detection, chunk buffering, same-chunk immediate processing src/ui/promptBuffer.ts cleanPasteContent, expandPasteMarkers, findPasteMarkerBefore/At/Containing, deletePasteMarkerBackward/Forward, hasActivePasteMarkers src/ui/prompt/cursor.ts useBracketedPaste hook (follows existing useTerminalExtendedKeys pattern) src/ui/prompt/index.ts Export useBracketedPaste src/ui/PromptInput.tsx handlePaste, expandPasteMarkerAtCursor, rendering with yellow highlight, hint text Verification typecheck — 0 error eslint — 0 error, 0 warning prettier — All matched files use Prettier code style test — 18/18 prompt buffer tests pass build — 414.7kb, successful Known Limitation Expand/collapse briefly clears Ink content above the prompt. This is a React render pipeline constraint, not introduced by this PR. Reference Previous attempt: PR #45 (closed) Inspired by pi project's paste marker approach

Open Graph Description: Summary When pasting a large block of text (>10 lines or >1000 characters), the content is replaced with a compact marker like [paste #1 +63 lines] instead of inserting the full text. Featur...

X Description: Summary When pasting a large block of text (>10 lines or >1000 characters), the content is replaced with a compact marker like [paste #1 +63 lines] instead of inserting the full text....

Opengraph URL: https://github.com/lessweb/deepcode-cli/pull/102

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:25a00567-a28b-d16c-fdb2-c87bf79e73e9
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9EA0:2702E6:4D1F6C:66E88F:6A4D32E3
html-safe-nonce49a0604a840e03145c322febcee5bcf9c536d1b160d5020d0bb2b11508ae5427
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RUEwOjI3MDJFNjo0RDFGNkM6NjZFODhGOjZBNEQzMkUzIiwidmlzaXRvcl9pZCI6IjQxMjI0MjIyMjIyMzE3NzgwMTkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac16fff565ebf0adf38cbb74c1fcc967ad1279cb4c2c057ded28818380e8de2615
hovercard-subject-tagpull_request:3716958622
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/lessweb/deepcode-cli/pull/102/files
twitter:imagehttps://avatars.githubusercontent.com/u/142088385?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/142088385?s=400&v=4
og:image:altSummary When pasting a large block of text (>10 lines or >1000 characters), the content is replaced with a compact marker like [paste #1 +63 lines] instead of inserting the full text. Featur...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None92571a8944142227b7e19cd10918b1ddd06e5066c1ad5bc7e4769cf6140a87e6
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/lessweb/deepcode-cli git https://github.com/lessweb/deepcode-cli.git
octolytics-dimension-user_id118287711
octolytics-dimension-user_loginlessweb
octolytics-dimension-repository_id1223512305
octolytics-dimension-repository_nwolessweb/deepcode-cli
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1223512305
octolytics-dimension-repository_network_root_nwolessweb/deepcode-cli
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release56fc8347865a14e2ec811533d68f929cf4e0ec19
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/lessweb/deepcode-cli/pull/102/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Flessweb%2Fdeepcode-cli%2Fpull%2F102%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Flessweb%2Fdeepcode-cli%2Fpull%2F102%2Ffiles
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=lessweb%2Fdeepcode-cli
Reloadhttps://github.com/lessweb/deepcode-cli/pull/102/files
Reloadhttps://github.com/lessweb/deepcode-cli/pull/102/files
Reloadhttps://github.com/lessweb/deepcode-cli/pull/102/files
Please reload this pagehttps://github.com/lessweb/deepcode-cli/pull/102/files
lessweb https://github.com/lessweb
deepcode-clihttps://github.com/lessweb/deepcode-cli
Notifications https://github.com/login?return_to=%2Flessweb%2Fdeepcode-cli
Fork 150 https://github.com/login?return_to=%2Flessweb%2Fdeepcode-cli
Star 1.7k https://github.com/login?return_to=%2Flessweb%2Fdeepcode-cli
Code https://github.com/lessweb/deepcode-cli
Issues 43 https://github.com/lessweb/deepcode-cli/issues
Pull requests 22 https://github.com/lessweb/deepcode-cli/pulls
Actions https://github.com/lessweb/deepcode-cli/actions
Projects https://github.com/lessweb/deepcode-cli/projects
Security and quality 0 https://github.com/lessweb/deepcode-cli/security
Insights https://github.com/lessweb/deepcode-cli/pulse
Code https://github.com/lessweb/deepcode-cli
Issues https://github.com/lessweb/deepcode-cli/issues
Pull requests https://github.com/lessweb/deepcode-cli/pulls
Actions https://github.com/lessweb/deepcode-cli/actions
Projects https://github.com/lessweb/deepcode-cli/projects
Security and quality https://github.com/lessweb/deepcode-cli/security
Insights https://github.com/lessweb/deepcode-cli/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Flessweb%2Fdeepcode-cli%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Flessweb%2Fdeepcode-cli%2Fissues%2Fnew%2Fchoose
qorzjhttps://github.com/qorzj
lessweb:mainhttps://github.com/lessweb/deepcode-cli/tree/main
jeoor:feat/paste-markerhttps://github.com/jeoor/deepcode-cli/tree/feat/paste-marker
Conversation 2 https://github.com/lessweb/deepcode-cli/pull/102
Commits 3 https://github.com/lessweb/deepcode-cli/pull/102/commits
Checks 9 https://github.com/lessweb/deepcode-cli/pull/102/checks
Files changed https://github.com/lessweb/deepcode-cli/pull/102/files
Please reload this pagehttps://github.com/lessweb/deepcode-cli/pull/102/files
feat(ui): add bracketed paste with large-paste marker collapsing https://github.com/lessweb/deepcode-cli/pull/102/files#top
Show all changes 3 commits https://github.com/lessweb/deepcode-cli/pull/102/files
3a8041f feat(ui): add bracketed paste detection with large-paste marker colla… jeoor May 20, 2026 https://github.com/lessweb/deepcode-cli/pull/102/commits/3a8041faa173f09fac437318f15cfefb4d9c2f78
bb95daf fix: validate paste markers by ID to prevent false positives jeoor May 20, 2026 https://github.com/lessweb/deepcode-cli/pull/102/commits/bb95daff1995dabf191e7888909423e5018e71a3
373961d Merge remote-tracking branch 'upstream/main' into feat/paste-marker jeoor May 21, 2026 https://github.com/lessweb/deepcode-cli/pull/102/commits/373961d2972237d6d8760c450f633bb2926b1436
Clear filters https://github.com/lessweb/deepcode-cli/pull/102/files
Please reload this pagehttps://github.com/lessweb/deepcode-cli/pull/102/files
Please reload this pagehttps://github.com/lessweb/deepcode-cli/pull/102/files
PromptInput.tsx https://github.com/lessweb/deepcode-cli/pull/102/files#diff-82045eb6c45c8c094739d89e1eb59b5ca893247cff1a12ef81af2ed6231b6be2
cursor.ts https://github.com/lessweb/deepcode-cli/pull/102/files#diff-1ef2f1b44b73fcee13bf52cbed9f13f7185ba0217976531d8e3e1fd6c95dc5be
index.ts https://github.com/lessweb/deepcode-cli/pull/102/files#diff-90ec13bc19edf18819501265fb49e4a87569e434c3804c60eeacad60dee44d88
useTerminalInput.ts https://github.com/lessweb/deepcode-cli/pull/102/files#diff-f6c0e8110e67628fb13983eab6e596fb5615a429b47b89469c24555f64d90b26
promptBuffer.ts https://github.com/lessweb/deepcode-cli/pull/102/files#diff-c837c53d256bf152f56316a396bebf6f9c54d29b38111c127925be536db06ad9
src/ui/PromptInput.tsxhttps://github.com/lessweb/deepcode-cli/pull/102/files#diff-82045eb6c45c8c094739d89e1eb59b5ca893247cff1a12ef81af2ed6231b6be2
View file https://github.com/jeoor/deepcode-cli/blob/373961d2972237d6d8760c450f633bb2926b1436/src/ui/PromptInput.tsx
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/lessweb/deepcode-cli/pull/102/{{ revealButtonHref }}
https://github.com/lessweb/deepcode-cli/pull/102/files#diff-82045eb6c45c8c094739d89e1eb59b5ca893247cff1a12ef81af2ed6231b6be2
https://github.com/lessweb/deepcode-cli/pull/102/files#diff-82045eb6c45c8c094739d89e1eb59b5ca893247cff1a12ef81af2ed6231b6be2
https://github.com/lessweb/deepcode-cli/pull/102/files#diff-82045eb6c45c8c094739d89e1eb59b5ca893247cff1a12ef81af2ed6231b6be2
https://github.com/lessweb/deepcode-cli/pull/102/files#diff-82045eb6c45c8c094739d89e1eb59b5ca893247cff1a12ef81af2ed6231b6be2
https://github.com/lessweb/deepcode-cli/pull/102/files#diff-82045eb6c45c8c094739d89e1eb59b5ca893247cff1a12ef81af2ed6231b6be2
https://github.com/lessweb/deepcode-cli/pull/102/files#diff-82045eb6c45c8c094739d89e1eb59b5ca893247cff1a12ef81af2ed6231b6be2
https://github.com/lessweb/deepcode-cli/pull/102/files#diff-82045eb6c45c8c094739d89e1eb59b5ca893247cff1a12ef81af2ed6231b6be2
https://github.com/lessweb/deepcode-cli/pull/102/files#diff-82045eb6c45c8c094739d89e1eb59b5ca893247cff1a12ef81af2ed6231b6be2
https://github.com/lessweb/deepcode-cli/pull/102/files#diff-82045eb6c45c8c094739d89e1eb59b5ca893247cff1a12ef81af2ed6231b6be2
https://github.com/lessweb/deepcode-cli/pull/102/files#diff-82045eb6c45c8c094739d89e1eb59b5ca893247cff1a12ef81af2ed6231b6be2
https://github.com/lessweb/deepcode-cli/pull/102/files#diff-82045eb6c45c8c094739d89e1eb59b5ca893247cff1a12ef81af2ed6231b6be2
https://github.com/lessweb/deepcode-cli/pull/102/files#diff-82045eb6c45c8c094739d89e1eb59b5ca893247cff1a12ef81af2ed6231b6be2
https://github.com/lessweb/deepcode-cli/pull/102/files#diff-82045eb6c45c8c094739d89e1eb59b5ca893247cff1a12ef81af2ed6231b6be2
https://github.com/lessweb/deepcode-cli/pull/102/files#diff-82045eb6c45c8c094739d89e1eb59b5ca893247cff1a12ef81af2ed6231b6be2
https://github.com/lessweb/deepcode-cli/pull/102/files#diff-82045eb6c45c8c094739d89e1eb59b5ca893247cff1a12ef81af2ed6231b6be2
https://github.com/lessweb/deepcode-cli/pull/102/files#diff-82045eb6c45c8c094739d89e1eb59b5ca893247cff1a12ef81af2ed6231b6be2
https://github.com/lessweb/deepcode-cli/pull/102/files#diff-82045eb6c45c8c094739d89e1eb59b5ca893247cff1a12ef81af2ed6231b6be2
https://github.com/lessweb/deepcode-cli/pull/102/files#diff-82045eb6c45c8c094739d89e1eb59b5ca893247cff1a12ef81af2ed6231b6be2
https://github.com/lessweb/deepcode-cli/pull/102/files#diff-82045eb6c45c8c094739d89e1eb59b5ca893247cff1a12ef81af2ed6231b6be2
https://github.com/lessweb/deepcode-cli/pull/102/files#diff-82045eb6c45c8c094739d89e1eb59b5ca893247cff1a12ef81af2ed6231b6be2
https://github.com/lessweb/deepcode-cli/pull/102/files#diff-82045eb6c45c8c094739d89e1eb59b5ca893247cff1a12ef81af2ed6231b6be2
https://github.com/lessweb/deepcode-cli/pull/102/files#diff-82045eb6c45c8c094739d89e1eb59b5ca893247cff1a12ef81af2ed6231b6be2
https://github.com/lessweb/deepcode-cli/pull/102/files#diff-82045eb6c45c8c094739d89e1eb59b5ca893247cff1a12ef81af2ed6231b6be2
https://github.com/lessweb/deepcode-cli/pull/102/files#diff-82045eb6c45c8c094739d89e1eb59b5ca893247cff1a12ef81af2ed6231b6be2
https://github.com/lessweb/deepcode-cli/pull/102/files#diff-82045eb6c45c8c094739d89e1eb59b5ca893247cff1a12ef81af2ed6231b6be2
https://github.com/lessweb/deepcode-cli/pull/102/files#diff-82045eb6c45c8c094739d89e1eb59b5ca893247cff1a12ef81af2ed6231b6be2
https://github.com/lessweb/deepcode-cli/pull/102/files#diff-82045eb6c45c8c094739d89e1eb59b5ca893247cff1a12ef81af2ed6231b6be2
https://github.com/lessweb/deepcode-cli/pull/102/files#diff-82045eb6c45c8c094739d89e1eb59b5ca893247cff1a12ef81af2ed6231b6be2
https://github.com/lessweb/deepcode-cli/pull/102/files#diff-82045eb6c45c8c094739d89e1eb59b5ca893247cff1a12ef81af2ed6231b6be2
https://github.com/lessweb/deepcode-cli/pull/102/files#diff-82045eb6c45c8c094739d89e1eb59b5ca893247cff1a12ef81af2ed6231b6be2
Please reload this pagehttps://github.com/lessweb/deepcode-cli/pull/102/files
Please reload this pagehttps://github.com/lessweb/deepcode-cli/pull/102/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.