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 9b0c62f
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: apps/sim/app/workspace/[workspaceId]/files/components/file-viewer/rich-markdown-editor/rich-markdown-editor.tsx
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1213,7 +1213,7 @@ export function LoadedRichMarkdownEditor({
Copy file name to clipboardExpand all lines: apps/sim/app/workspace/[workspaceId]/home/components/user-input/components/prompt-editor/prompt-editor.tsx
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -253,7 +253,7 @@ export function PromptEditor({
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
+11-2Lines changed: 11 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -174,6 +174,8 @@ export function usePromptEditor({
174
174
const[value,setValueState]=useState(initialValue)
175
175
constvalueRef=useRef(value)
176
176
valueRef.current=value
177
+
constworkspaceIdRef=useRef(workspaceId)
178
+
workspaceIdRef.current=workspaceId
177
179
178
180
/**
179
181
* Commits a new text value, keeping {@link valueRef} in lockstep with state so
@@ -1000,7 +1002,10 @@ export function usePromptEditor({
1000
1002
// is already attached there is nothing to add, and claiming the event anyway
1001
1003
// would swallow the keystroke entirely — no chip and no text. Falling through
1002
1004
// pastes the selection's plain text, which is what the user asked for.
0 commit comments