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 7c85ff7
Browse filesBrowse the repository at this point in the historyBrowse files
fix(composer): label paste thresholds by size and keep settings decodable
Review follow-ups for the large paste threshold setting:
- Label presets as sizes with approximate character counts
("5 KB (~5,000 chars)"). The threshold also counts UTF-8 bytes, so
non-Latin text and emoji fold with fewer characters; the settings copy and
user docs now say so.
- Fall back to the default when a stored threshold is not a current preset,
so changing the presets later cannot fail the whole client settings decode.
- Select only the threshold from mobile preferences so unrelated preference
writes do not re-render the native composer editors.
- Cover the 1 KB byte boundary, the labels, the decode fallback, and restore
defaults in tests.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
@@ -2746,7 +2747,7 @@ export function GeneralSettingsPanel() {
2746
2747
2747
2748
<SettingsRow
2748
2749
{...searchableSetting("large-paste-threshold")}
2749
-
description={`Pastes this long or longer become a text file attachment. Press ${modifierLabel} + Shift + V to paste inline instead.`}
2750
+
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