You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit a22f040
Browse filesBrowse the repository at this point in the historyBrowse files
feat(composer): choose when large pastes become text attachments
Pasted text only folds into a text-file attachment at 32 KiB, so everyday
logs, stack traces, and code blocks land in the composer as text. On a
phone that text fills the whole composer and the prompt around it is hard
to reach or edit.
Add a client setting with three presets (1 KB, 5 KB, and 32 KB, the default
and today's behavior) on web, desktop, and mobile. The shared paste
disposition and the native editors read the chosen threshold instead of a
constant. Presets are labelled by size because the comparison counts UTF-8
bytes, and a stored value that is no longer a preset decodes to the default
instead of failing the settings decode.
Co-Authored-By: Claude Fable 5.2 <[email protected]>
@@ -1214,6 +1221,57 @@ export function ChatSettingsPanel() {
1214
1221
</Select>
1215
1222
}
1216
1223
/>
1224
+
<SettingsRow
1225
+
{...searchableSetting("large-paste-threshold")}
1226
+
description={`Pastes this size or larger become a text file attachment. Non-Latin text and emoji use more bytes per character, so they reach it sooner. Press ${modifierLabel} + Shift + V to paste inline instead.`}
0 commit comments