···287287 const focusTextarea = () => {
288288 setTimeout(() => {
289289 if (!textareaRef.current) return;
290290- // status starts with newline, focus on first position
291291- if (draftStatus?.status?.startsWith?.('\n')) {
290290+ // status starts with newline or space, focus on first position
291291+ if (/^\n|\s/.test(draftStatus?.status)) {
292292 textareaRef.current.selectionStart = 0;
293293 textareaRef.current.selectionEnd = 0;
294294 }