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 580d1c0
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: apps/sim/app/workspace/[workspaceId]/home/components/user-input/components/prompt-editor/use-prompt-editor.test.tsx
Copy file name to clipboardExpand all lines: apps/sim/app/workspace/[workspaceId]/home/components/user-input/components/prompt-editor/use-prompt-editor.ts
+20-20Lines changed: 20 additions & 20 deletions
Original file line number
Diff line number
Diff line change
@@ -991,26 +991,6 @@ export function usePromptEditor({
toast.warning('Paste is too large for a message',{
1008
-
description: `Messages support up to ${PASTE_LIMITS.CHAT_CHARACTERS.toLocaleString()} characters. Attach the content as a file to send more without slowing the editor.`,
1009
-
})
1010
-
return
1011
-
}
1012
-
}
1013
-
1014
994
// A selection copied from a file/table (Cmd+C) carries its context on a
1015
995
// custom clipboard type — paste it as a reference chip instead of plain text.
1016
996
// Registers via `addContext` (not the notified path) so paste never opens a
@@ -1039,6 +1019,26 @@ export function usePromptEditor({
toast.warning('Paste is too large for a message',{
1036
+
description: `Messages support up to ${PASTE_LIMITS.CHAT_CHARACTERS.toLocaleString()} characters. Attach the content as a file to send more without slowing the editor.`,
1037
+
})
1038
+
return
1039
+
}
1040
+
}
1041
+
1042
1042
// Portable chip links (`[label](sim:kind/id)`) re-create their chip on
1043
1043
// paste-back. Rewrite each link span to its `@label ` token (the trailing
1044
1044
// space is REQUIRED so useContextManagement's sync effect doesn't purge the
0 commit comments