fix(desktop): prompt clearing inconsistent
This commit is contained in:
parent
54bff6b120
commit
c672a1963b
2 changed files with 29 additions and 29 deletions
|
|
@ -319,7 +319,9 @@ export const PromptInput: Component<PromptInputProps> = (props) => {
|
|||
|
||||
session.layout.setActiveTab(undefined)
|
||||
session.messages.setActive(undefined)
|
||||
session.prompt.set(DEFAULT_PROMPT, 0)
|
||||
// Clear the editor DOM directly to ensure it's empty
|
||||
editorRef.innerHTML = ""
|
||||
session.prompt.set([{ type: "text", content: "", start: 0, end: 0 }], 0)
|
||||
|
||||
sdk.client.session.prompt({
|
||||
path: { id: existing.id },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue