diff --git a/src/renderer/src/hooks/useComposerState.ts b/src/renderer/src/hooks/useComposerState.ts index 08aa47de717..2967a347c26 100644 --- a/src/renderer/src/hooks/useComposerState.ts +++ b/src/renderer/src/hooks/useComposerState.ts @@ -473,9 +473,7 @@ export function useComposerState(options: UseComposerStateOptions): UseComposerS // Why: read the latest note inside handleBaseBranchPrSelect without adding // `note` to its deps (which would rebuild the callback on every keystroke). const noteRef = useRef(note) - useEffect(() => { - noteRef.current = note - }, [note]) + noteRef.current = note const composerRef = useRef(null) const promptTextareaRef = useRef(null) const nameInputRef = useRef(null)