Voice-to-text dictation app with local (Nvidia Parakeet/Whisper) and cloud models (BYOK). Privacy-first and available cross-platform.
JavaScript aianthropiccross-platformgeminigroqlinuxmacosnvidiaopen-sourceopenaiparakeetspeech-to-texttranscribewhisperwindows
refactor(chat): move thinking indicator to message bubble as shimmer gradient text
Gabriel Stein23bfd71cec6a
diff --git a/src/components/AgentOverlay.tsx b/src/components/AgentOverlay.tsxindex 5eb308976..8bdb82075 100644--- a/src/components/AgentOverlay.tsx+++ b/src/components/AgentOverlay.tsx@@ -29,7 +29,7 @@ export default function AgentOverlay() {},});- const { agentState, toolStatus, activeToolName } = streaming;+ const { agentState } = streaming;useEffect(() => {agentStateRef.current = agentState;@@ -202,8 +202,6 @@ export default function AgentOverlay() {<AgentInputagentState={agentState}partialTranscript={partialTranscript}- toolStatus={toolStatus}- activeToolName={activeToolName}onTextSubmit={handleTranscriptionComplete}onCancel={streaming.cancelStream}/>diff --git a/src/components/agent/AgentInput.tsx b/src/components/agent/AgentInput.tsxindex 714dbde40..298f446c0 100644--- a/src/components/agent/AgentInput.tsx+++ b/src/components/agent/AgentInput.tsx@@ -4,8 +4,6 @@ import type { AgentState } from "../chat/types";interface AgentInputProps {agentState: AgentState;partialTranscript: string;- toolStatus?: string;- activeToolName?: string;onTextSubmit?: (text: string) => void;onCancel?: () => void;}diff --git a/src/components/chat/ChatInput.tsx b/src/components/chat/ChatInput.tsxindex b31a5e331..4eb1c9364 100644--- a/src/components/chat/ChatInput.tsx+++ b/src/components/chat/ChatInput.tsx@@ -5,13 +5,9 @@ import { cn } from "../lib/utils";import { useSettingsStore } from "../../stores/settingsStore";import { formatHotkeyLabel, isGlobeLikeHotkey } from "../../utils/hotkeys";import type { AgentState } from "./types";-import { toolIcons } from "./toolIcons";-interface ChatInputProps {agentState: AgentState;partialTranscript: string;- toolStatus?: string;- activeToolName?: string;onTextSubmit?: (text: string) => void;onCancel?: () => void;showHotkey?: boolean;@@ -84,8 +80,6 @@ function ProcessingIndicator() {export function ChatInput({agentState,partialTranscript,- toolStatus,- activeToolName,onTextSubmit,onCancel,showHotkey = false,@@ -116,7 +110,6 @@ export function ChatInput({const isListening = agentState === "listening";const isTranscribing = agentState === "transcribing";const isBusy = agentState === "thinking" || agentState === "streaming" || agentState === "tool-executing";- const ToolIcon = activeToolName ? toolIcons[activeToolName] : null;return (<div@@ -144,7 +137,7 @@ export function ChatInput({)}{(isIdle || isBusy) && (- <div className="relative flex items-center gap-2 w-full">+ <div className="flex items-center gap-2 w-full"><inputref={inputRef}type="text"@@ -152,26 +145,14 @@ export function ChatInput({onChange={(e) => setInputText(e.target.value)}onKeyDown={handleKeyDown}disabled={isBusy}- placeholder={isBusy ? "" : t("agentMode.input.typeMessage")}+ placeholder={t("agentMode.input.typeMessage")}className={cn("input-inline flex-1 outline-none bg-transparent","text-[13px] text-foreground placeholder:text-muted-foreground/40","min-w-0 p-0",- isBusy && "opacity-0 pointer-events-none"+ isBusy && "text-muted-foreground/30 cursor-not-allowed")}/>- {isBusy && (- <div className="absolute inset-0 flex items-center gap-2 pr-8 pointer-events-none">- {agentState === "tool-executing" && ToolIcon ? (- <ToolIcon size={12} className="text-primary/60 shrink-0" />- ) : null}- <span className="text-[12px] text-muted-foreground/60 select-none truncate">- {agentState === "tool-executing" && toolStatus- ? toolStatus- : t("agentMode.input.thinking")}- </span>- </div>- )}{isIdle && inputText.trim() ? (<buttononClick={handleSubmit}diff --git a/src/components/chat/ChatMessage.tsx b/src/components/chat/ChatMessage.tsxindex 6c00232f6..170898531 100644--- a/src/components/chat/ChatMessage.tsx+++ b/src/components/chat/ChatMessage.tsx@@ -175,6 +175,7 @@ function extractNoteCards(toolCalls?: ToolCallInfo[]): Array<{ noteId: number; t}export function ChatMessage({ role, content, isStreaming, toolCalls }: ChatMessageProps) {+ const { t } = useTranslation();const [copied, setCopied] = useState(false);const handleCopy = async () => {@@ -249,14 +250,11 @@ export function ChatMessage({ role, content, isStreaming, toolCalls }: ChatMessa)}{isStreaming && !hasContent && (- <div- className="h-4 w-24 rounded-sm"- style={{- background: "linear-gradient(90deg, transparent, var(--color-primary-shimmer, oklch(0.65 0.2 260 / 0.25)), transparent)",- backgroundSize: "200% 100%",- animation: "thinking-shimmer 1.8s ease-in-out infinite",- }}- />+ <span+ className="text-[13px] font-medium select-none thinking-shimmer-text"+ >+ {t("agentMode.input.thinking")}+ </span>)}{noteCards.length > 0 && !isStreaming && (diff --git a/src/components/chat/ChatView.tsx b/src/components/chat/ChatView.tsxindex 55bb70a2f..f41bffe30 100644--- a/src/components/chat/ChatView.tsx+++ b/src/components/chat/ChatView.tsx@@ -165,8 +165,6 @@ export default function ChatView() {<ChatInputagentState={streaming.agentState}partialTranscript=""- toolStatus={streaming.toolStatus}- activeToolName={streaming.activeToolName}onTextSubmit={handleTextSubmit}onCancel={streaming.cancelStream}/>diff --git a/src/index.css b/src/index.cssindex d40ac0c9a..d2353e5b1 100644--- a/src/index.css+++ b/src/index.css@@ -888,6 +888,21 @@ body:has(.agent-overlay-window) #root {}}+.thinking-shimmer-text {+ background: linear-gradient(+ 90deg,+ var(--color-primary) 0%,+ oklch(0.75 0.18 260) 40%,+ var(--color-primary) 60%,+ oklch(0.55 0.22 260) 100%+ );+ background-size: 200% 100%;+ animation: thinking-shimmer 2s ease-in-out infinite;+ -webkit-background-clip: text;+ background-clip: text;+ -webkit-text-fill-color: transparent;+}+@keyframes agent-loading-dot {0%,80%,