From 39971128cb7e11e8b33c402eed026fe5cd3a7bae Mon Sep 17 00:00:00 2001 From: Saoud Rizwan <7799382+saoudrizwan@users.noreply.github.com> Date: Thu, 5 Feb 2026 02:00:43 -0800 Subject: [PATCH] fix(cli): use value import for React instead of type-only import --- cli/src/components/ChatView.tsx | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/cli/src/components/ChatView.tsx b/cli/src/components/ChatView.tsx index fb7a6a0653..4a9f7867d7 100644 --- a/cli/src/components/ChatView.tsx +++ b/cli/src/components/ChatView.tsx @@ -460,11 +460,7 @@ export const ChatView: React.FC = ({ if (!provider) return "" const stateManager = StateManager.get() const modelKey = getProviderModelIdKey(provider as ApiProvider, mode) - return ( - (stateManager.getGlobalSettingsKey(modelKey) as string) || - getProviderDefaultModelId(provider as ApiProvider) || - "" - ) + return (stateManager.getGlobalSettingsKey(modelKey) as string) || getProviderDefaultModelId(provider as ApiProvider) || "" }, [mode, provider, activePanel]) const toggleMode = useCallback(async () => { @@ -1292,7 +1288,8 @@ export const ChatView: React.FC = ({ return next }) - const newText = textInputRef.current.slice(0, currentCursorPos) + placeholder + textInputRef.current.slice(currentCursorPos) + const newText = + textInputRef.current.slice(0, currentCursorPos) + placeholder + textInputRef.current.slice(currentCursorPos) textInputRef.current = newText // Update ref immediately so setCursorPos bounds check works setTextInput(newText) setCursorPos(currentCursorPos + placeholder.length)