summaryrefslogtreecommitdiffhomepage
path: root/packages/desktop/src/components
diff options
context:
space:
mode:
authorAdam <[email protected]>2025-11-11 09:35:08 -0600
committerAdam <[email protected]>2025-11-11 09:35:08 -0600
commitc672a1963b391c97bda16cabc73e00426d6c9d9f (patch)
tree8751e27a09e1353ec30e598260a96282284e3189 /packages/desktop/src/components
parent54bff6b1206b9750c026bfb3f26ec471c88d73f8 (diff)
downloadopencode-c672a1963b391c97bda16cabc73e00426d6c9d9f.tar.gz
opencode-c672a1963b391c97bda16cabc73e00426d6c9d9f.zip
fix(desktop): prompt clearing inconsistent
Diffstat (limited to 'packages/desktop/src/components')
-rw-r--r--packages/desktop/src/components/prompt-input.tsx4
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/desktop/src/components/prompt-input.tsx b/packages/desktop/src/components/prompt-input.tsx
index 063822148..41ec71cfa 100644
--- a/packages/desktop/src/components/prompt-input.tsx
+++ b/packages/desktop/src/components/prompt-input.tsx
@@ -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 },