summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAdam <[email protected]>2025-12-13 15:25:56 -0600
committerAdam <[email protected]>2025-12-13 15:25:56 -0600
commit974a24ba0203874b581361c6e56087afb1db4e88 (patch)
treeef0a438b4d81805adf8e49a770a127e8d92f62d4
parent5ebe29de1ebfebf0ecc6aa11b054f3de3bef85de (diff)
downloadopencode-974a24ba0203874b581361c6e56087afb1db4e88.tar.gz
opencode-974a24ba0203874b581361c6e56087afb1db4e88.zip
fix: don't rotate placeholders in session
-rw-r--r--packages/desktop/src/components/prompt-input.tsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/desktop/src/components/prompt-input.tsx b/packages/desktop/src/components/prompt-input.tsx
index ec8267bf7..c97c6b6fc 100644
--- a/packages/desktop/src/components/prompt-input.tsx
+++ b/packages/desktop/src/components/prompt-input.tsx
@@ -151,7 +151,8 @@ export const PromptInput: Component<PromptInputProps> = (props) => {
const [placeholder, setPlaceholder] = createSignal(Math.floor(Math.random() * PLACEHOLDERS.length))
- onMount(() => {
+ createEffect(() => {
+ if (session.id) return
const interval = setInterval(() => {
setPlaceholder((prev) => (prev + 1) % PLACEHOLDERS.length)
}, 6500)