Skip to content

Voice-to-text dictation app with local (Nvidia Parakeet/Whisper) and cloud models (BYOK). Privacy-first and available cross-platform.

Merge remote-tracking branch 'origin/main' into fix/meeting-speaker-identity

Chadpiha73bcee2ffa6a
diff --cc src/components/notes/PersonalNotesView.tsx
index 8f85dd93f,f03aff028..5f061a042
--- a/src/components/notes/PersonalNotesView.tsx
+++ b/src/components/notes/PersonalNotesView.tsx
@@@ -616,16 -618,28 +619,29 @@@ export default function PersonalNotesVi
if (!meetingRecordingRequest || activeNoteId !== meetingRecordingRequest.noteId) return;
const note = activeNote?.id === meetingRecordingRequest.noteId ? activeNote : null;
const seedSegments = note?.transcript ? parseTranscriptSegments(note.transcript) : [];
- storeStartRecording({
- noteId: meetingRecordingRequest.noteId,
- noteTitle: note?.title ?? null,
- folderId: note?.folder_id ?? meetingRecordingRequest.folderId ?? null,
- seedSegments,
- diarizationEnabled: note?.diarization_enabled == null ? null : note.diarization_enabled === 1,
- expectedCount: resolveExpectedSpeakerCount(note),
- expectedCountIsExplicit: note?.expected_speaker_count != null,
+ void handleMeetingRecordingRequest({
+ args: {
+ noteId: meetingRecordingRequest.noteId,
+ noteTitle: note?.title ?? null,
+ folderId: note?.folder_id ?? meetingRecordingRequest.folderId ?? null,
+ seedSegments,
+ diarizationEnabled:
+ note?.diarization_enabled == null ? null : note.diarization_enabled === 1,
+ expectedCount: resolveExpectedSpeakerCount(note),
++ expectedCountIsExplicit: note?.expected_speaker_count != null,
+ },
+ startRecording: storeStartRecording,
+ restoreFromMeetingMode: async () => {
+ await window.electronAPI?.restoreFromMeetingMode?.();
+ },
+ onHandled: () => onMeetingRecordingRequestHandled?.(),
+ }).catch((error) => {
+ logger.warn(
+ "Failed to handle automatic meeting recording request",
+ { error: (error as Error).message },
+ "meeting"
+ );
});
- onMeetingRecordingRequestHandled?.();
}, [meetingRecordingRequest, activeNoteId, activeNote, onMeetingRecordingRequestHandled]);
const prevTranscribingRef = useRef(false);
diff --cc src/stores/meetingRecordingStore.ts
index 4180707b2,24798c156..d638c350c
--- a/src/stores/meetingRecordingStore.ts
+++ b/src/stores/meetingRecordingStore.ts
@@@ -470,9 -470,17 +475,17 @@@ export const useMeetingRecordingStore
windowWidth: typeof window !== "undefined" ? window.innerWidth : SIDE_PANEL_BREAKPOINT_PX,
}));
+ function reportMeetingError(error: string, extra: Partial<MeetingRecordingState> = {}): void {
+ useMeetingRecordingStore.setState((state) => ({
+ ...extra,
+ error,
+ errorNonce: state.errorNonce + 1,
+ }));
+ }
+
export const getMicAnalyser = (): AnalyserNode | null => micAnalyser;
-function pushConfig(enabled: boolean, expectedCount: number) {
+function pushConfig(enabled: boolean, expectedCount: number, countIsExplicit: boolean) {
if (pushConfigTimeout) clearTimeout(pushConfigTimeout);
pushConfigTimeout = setTimeout(() => {
(
@@@ -756,11 -730,15 +770,16 @@@ export interface StartRecordingArgs
seedSegments?: TranscriptSegment[];
diarizationEnabled?: boolean | null;
expectedCount?: number | null;
+ expectedCountIsExplicit?: boolean;
}
- export async function startRecording(args: StartRecordingArgs): Promise<void> {
- if (isRecordingFlag || isStartingFlag) return;
+ export async function startRecording(args: StartRecordingArgs): Promise<boolean> {
+ if (isRecordingFlag || isStartingFlag) return true;
+ if (!isTranscriptionContextAllowed(usePolicyStore.getState(), getSettings(), "meeting")) {
+ logger.warn("Meeting recording blocked by workspace policy", {}, "meeting");
+ reportMeetingError("policyRestricted");
+ return false;
+ }
isStartingFlag = true;
const initialEnabled =