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
fix(notes,agent): solid bottom bar background, direct note navigation, no auto-mic on agent hotkey
Gabriel Stein069e02ecb161
diff --git a/main.js b/main.jsindex 8454dea35..368655a6e 100644--- a/main.js+++ b/main.js@@ -887,16 +887,13 @@ async function startApp() {globeKeyManager.start();// After starting globe-listener, check if accessibility is granted.- // If not, notify both windows so they can prompt the user.+ // If not, notify the control panel so it can prompt the user.const checkAndNotifyAccessibility = () => {if (!systemPreferences.isTrustedAccessibilityClient(false)) {debugLogger.info("[Accessibility] macOS accessibility not trusted — notifying renderers");if (isLiveWindow(windowManager.controlPanelWindow)) {windowManager.controlPanelWindow.webContents.send("accessibility-missing");}- if (isLiveWindow(windowManager.mainWindow)) {- windowManager.mainWindow.webContents.send("accessibility-missing");- }}};diff --git a/src/App.jsx b/src/App.jsxindex 4e771a0a6..6030b238e 100644--- a/src/App.jsx+++ b/src/App.jsx@@ -121,14 +121,6 @@ export default function App() {});});- const unsubscribeAccessibility = window.electronAPI?.onAccessibilityMissing?.(() => {- toast({- title: t("app.toasts.accessibilityMissing.title"),- description: t("app.toasts.accessibilityMissing.description"),- duration: 12000,- });- });-const unsubscribeCorrections = window.electronAPI?.onCorrectionsLearned?.((words) => {if (words && words.length > 0) {const wordList = words.map((w) => `\u201c${w}\u201d`).join(", ");@@ -165,7 +157,6 @@ export default function App() {return () => {unsubscribeFallback?.();unsubscribeFailed?.();- unsubscribeAccessibility?.();unsubscribeCorrections?.();};}, [toast, dismiss, t]);diff --git a/src/components/chat/ChatMessage.tsx b/src/components/chat/ChatMessage.tsxindex d5725b0aa..1fa7a0319 100644--- a/src/components/chat/ChatMessage.tsx+++ b/src/components/chat/ChatMessage.tsx@@ -19,6 +19,7 @@ interface ChatMessageProps {content: string;isStreaming: boolean;toolCalls?: ToolCallInfo[];+ onOpenNote?: (noteId: number) => void;}const NOTE_TOOLS = new Set(["create_note", "update_note", "get_note"]);@@ -125,12 +126,22 @@ function ToolCallStep({ toolCall }: { toolCall: ToolCallInfo }) {);}-function NoteCard({ noteId, title }: { noteId: number; title: string }) {+function NoteCard({+ noteId,+ title,+ onOpenNote,+}: {+ noteId: number;+ title: string;+ onOpenNote?: (noteId: number) => void;+}) {const { t } = useTranslation();return (<button- onClick={() => window.electronAPI?.agentOpenNote?.(noteId)}+ onClick={() =>+ onOpenNote ? onOpenNote(noteId) : window.electronAPI?.agentOpenNote?.(noteId)+ }className={cn("flex items-center gap-2 w-full mt-2 px-2.5 py-2 rounded-md","bg-primary/6 border border-primary/12",@@ -174,7 +185,7 @@ function extractNoteCards(toolCalls?: ToolCallInfo[]): Array<{ noteId: number; treturn cards;}-export function ChatMessage({ role, content, isStreaming, toolCalls }: ChatMessageProps) {+export function ChatMessage({ role, content, isStreaming, toolCalls, onOpenNote }: ChatMessageProps) {const { t } = useTranslation();const [copied, setCopied] = useState(false);@@ -258,7 +269,12 @@ export function ChatMessage({ role, content, isStreaming, toolCalls }: ChatMessa{noteCards.length > 0 && !isStreaming && (<div>{noteCards.map((card) => (- <NoteCard key={card.noteId} noteId={card.noteId} title={card.title} />+ <NoteCard+ key={card.noteId}+ noteId={card.noteId}+ title={card.title}+ onOpenNote={onOpenNote}+ />))}</div>)}diff --git a/src/components/chat/ChatMessages.tsx b/src/components/chat/ChatMessages.tsxindex 297990eed..f3ad23d3e 100644--- a/src/components/chat/ChatMessages.tsx+++ b/src/components/chat/ChatMessages.tsx@@ -6,9 +6,10 @@ import type { Message } from "./types";interface ChatMessagesProps {messages: Message[];emptyState?: React.ReactNode;+ onOpenNote?: (noteId: number) => void;}-export function ChatMessages({ messages, emptyState }: ChatMessagesProps) {+export function ChatMessages({ messages, emptyState, onOpenNote }: ChatMessagesProps) {const scrollRef = useRef<HTMLDivElement>(null);useEffect(() => {@@ -33,6 +34,7 @@ export function ChatMessages({ messages, emptyState }: ChatMessagesProps) {content={msg.content}isStreaming={msg.isStreaming}toolCalls={msg.toolCalls}+ onOpenNote={onOpenNote}/>))}</div>diff --git a/src/components/notes/EmbeddedChat.tsx b/src/components/notes/EmbeddedChat.tsxindex 161d712fe..8e8ebe254 100644--- a/src/components/notes/EmbeddedChat.tsx+++ b/src/components/notes/EmbeddedChat.tsx@@ -5,6 +5,7 @@ import { cn } from "../lib/utils";import { ChatMessages } from "../chat/ChatMessages";import { ChatInput } from "../chat/ChatInput";import type { Message, AgentState } from "../chat/types";+import { setActiveNoteId } from "../../stores/noteStore";export type EmbeddedChatMode = "hidden" | "floating" | "sidebar";@@ -38,6 +39,10 @@ export default function EmbeddedChat({}: EmbeddedChatProps) {const { t } = useTranslation();+ const handleOpenNote = useCallback((noteId: number) => {+ setActiveNoteId(noteId);+ }, []);+const handleKeyDown = useCallback((e: KeyboardEvent) => {if (e.key === "Escape" && mode === "floating") {@@ -90,7 +95,7 @@ export default function EmbeddedChat({const chatContent = (<>{header}- <ChatMessages messages={messages} emptyState={<EmptyState />} />+ <ChatMessages messages={messages} emptyState={<EmptyState />} onOpenNote={handleOpenNote} /><ChatInputagentState={agentState}partialTranscript=""diff --git a/src/components/notes/NoteBottomBar.tsx b/src/components/notes/NoteBottomBar.tsxindex 54fd0bafe..29f1d1a0a 100644--- a/src/components/notes/NoteBottomBar.tsx+++ b/src/components/notes/NoteBottomBar.tsx@@ -85,7 +85,7 @@ export default function NoteBottomBar({return (<divref={containerRef}- className="absolute bottom-0 left-0 right-0 z-10 px-5 pb-4 pointer-events-none"+ className="absolute bottom-0 left-0 right-0 z-10 px-5 pb-4 pt-3 pointer-events-none bg-background"><div className="flex items-end gap-2 pointer-events-auto"><div@@ -101,7 +101,6 @@ export default function NoteBottomBar({"flex items-center gap-2 h-10 pl-3.5 pr-3 rounded-xl","bg-primary/6 dark:bg-primary/10","border border-primary/20 dark:border-primary/25",- "backdrop-blur-sm","transition-colors duration-150","hover:bg-primary/10 dark:hover:bg-primary/15")}@@ -141,7 +140,6 @@ export default function NoteBottomBar({"flex items-center justify-center w-10 h-10 rounded-xl","bg-foreground/3 dark:bg-white/4","border border-border/20 dark:border-white/6",- "backdrop-blur-sm","text-foreground/30 dark:text-foreground/20","transition-all duration-200","hover:bg-foreground/6 dark:hover:bg-white/8",diff --git a/src/helpers/windowManager.js b/src/helpers/windowManager.jsindex 0d41c758f..71ec9ff7f 100644--- a/src/helpers/windowManager.js+++ b/src/helpers/windowManager.js@@ -716,8 +716,6 @@ class WindowManager {} else {this.agentWindow.show();}-- this.agentWindow.webContents.send("agent-start-recording");}hideAgentOverlay() {