AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
fix(frontend): hide placeholder text when copilot voice recording is active (#12534)
Abhimanyu Yadav9b086e39c684
diff --git a/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatInput/ChatInput.tsx b/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatInput/ChatInput.tsxindex 0d48f3980b..aa99e2fa18 100644--- a/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatInput/ChatInput.tsx+++ b/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatInput/ChatInput.tsx@@ -93,6 +93,12 @@ export function ChatInput({baseHandleChange(e);}+ const resolvedPlaceholder = isRecording+ ? ""+ : isTranscribing+ ? "Transcribing..."+ : placeholder;+const canSend =!disabled &&(!!value.trim() || hasFiles) &&@@ -129,7 +135,7 @@ export function ChatInput({onChange={handleChange}onKeyDown={handleKeyDown}disabled={isInputDisabled}- placeholder={isTranscribing ? "Transcribing..." : placeholder}+ placeholder={resolvedPlaceholder}/>{isRecording && !value && (<div className="pointer-events-none absolute inset-0 flex items-center justify-center">