fix: don't rotate placeholders in session

pull/5497/head
Adam 2025-12-13 15:25:56 -06:00
parent 5ebe29de1e
commit 974a24ba02
No known key found for this signature in database
GPG Key ID: 9CB48779AF150E75
1 changed files with 2 additions and 1 deletions

View File

@ -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)