feat(ui): attach large text pastes as virtual files

Offer to turn sufficiently large plain-text clipboard pastes into
pasted-context-N.txt attachments instead of inserting them into the
composer, with ask/attach/inline composer settings.

Co-authored-by: Serhii Dziupin <makeittech@users.noreply.github.com>
This commit is contained in:
Cursor Agent
2026-08-04 11:38:02 +00:00
co-authored by Serhii Dziupin
parent f47110c66f
commit ef11ab5b14
33 changed files with 458 additions and 11 deletions
+8 -1
View File
@@ -338,7 +338,7 @@ const SETTINGS_SEARCH_ITEMS: readonly SettingsSearchItem[] = [
id: 'chat.composer',
page: 'chat',
titleKey: 'settings.openchamber.visual.section.composer',
keywords: ['input', 'draft', 'spellcheck'],
keywords: ['input', 'draft', 'spellcheck', 'paste'],
},
{
id: 'chat.spellcheck',
@@ -347,6 +347,13 @@ const SETTINGS_SEARCH_ITEMS: readonly SettingsSearchItem[] = [
keywords: ['spelling', 'input'],
isAvailable: (ctx) => !ctx.isMobile,
},
{
id: 'chat.large-text-paste',
page: 'chat',
titleKey: 'settings.openchamber.visual.field.largeTextPaste',
descriptionKey: 'settings.openchamber.visual.field.largeTextPasteHint',
keywords: ['paste', 'clipboard', 'attachment', 'large', 'text', 'file'],
},
{
id: 'sessions.default-model',
page: 'sessions',