From 46ba8e56b453610b93b4e6ab23b0e13b03760aed Mon Sep 17 00:00:00 2001 From: Simos Mikelatos Date: Fri, 26 Jun 2026 16:14:44 +0200 Subject: [PATCH] Potential fix for pull request finding 'Useless assignment to local variable' Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com> --- src/components/chat/view/subcomponents/ChatComposer.tsx | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/components/chat/view/subcomponents/ChatComposer.tsx b/src/components/chat/view/subcomponents/ChatComposer.tsx index 7437eb6e..6077ca2b 100644 --- a/src/components/chat/view/subcomponents/ChatComposer.tsx +++ b/src/components/chat/view/subcomponents/ChatComposer.tsx @@ -194,13 +194,6 @@ export default function ChatComposer({ const isRecording = voiceState === 'recording'; const isTranscribing = voiceState === 'transcribing'; - const textareaRect = textareaRef.current?.getBoundingClientRect(); - const commandMenuPosition = { - top: textareaRect ? Math.max(16, textareaRect.top - 316) : 0, - left: textareaRect ? textareaRect.left : 16, - bottom: textareaRect ? window.innerHeight - textareaRect.top + 8 : 90, - }; - // Detect if the AskUserQuestion interactive panel is active const hasQuestionPanel = pendingPermissionRequests.some( (r) => r.toolName === 'AskUserQuestion'