Repository navigation
Let users choose when large pastes become text attachments (1k / 5k / 32 KiB presets) #21489
danddanddand
started this conversation in
Ideas
Replies: 1 comment
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Problem
Pasting a long block of text (logs, stack traces, a file) into the composer only folds it into a
pasted-text.txtattachment once it reaches 32 KiB, the threshold from #11442. Most everyday pastes are well under that, so they still fill the whole composer and push the draft out of view.Other agent apps fold much earlier:
LARGE_PASTE_CHAR_THRESHOLDincodex-rs/tui/src/bottom_pane/chat_composer.rs). It expands them back into the prompt on submit.Pasted text.txtfile attachment. This is the closest match to how T3 Code folds.Proposal
Keep 32 KiB as the default, and add a small preset setting for when pasted text becomes an attachment:
On web and desktop it's a row under Settings → General. On mobile it's a Settings → Large pastes screen, because mobile keeps its own device preferences. The existing
Cmd/Ctrl+Shift+Vpaste-as-text bypass is unchanged.Presets rather than a free number keep validation and labels simple. The default stays the same, so nobody's behavior changes unless they opt in.
I have an implementation ready and will open it as a draft PR linked here.
All reactions