Conversation
…tion - Remove translateWithContext which caused duplicate translations by including context translations in the output when Apple Translation didn't preserve newline structure - Add extractCompleteSentences() that detects sentence boundaries via linguistic analysis and creates subtitle entries immediately on punctuation (. ! ?) instead of waiting for pause timer - Simplify handlePartialTextStabilized() to consume remaining liveText directly as a fallback for unpunctuated speech - Remove dead translateWithContext method from TranslationService
Add a very low-opacity background (5% black fill + 8% white border) to the full overlay area so users can always see where the overlay is positioned, even when no subtitles are displayed.
Wrap NSHostingView in NSView container to decouple window size from content, add lock toggle and reset button in Settings > Display, and fix click-through behavior so locked overlay passes clicks through while unlocked overlay allows move/resize but blocks underlying clicks.
… tracking - Fix duplicate subtitle entries caused by recognizer text reformulation: find longest common prefix instead of resetting consumed state entirely, add deduplication check (last 2 entries within 2s) before adding entries - Fix race condition in stopCapture: set isCapturing=false before stopRecognition to prevent phantom entries from Combine sink - Fix SystemAudioCapture: finish continuation before awaiting stopCapture to prevent dangling yields; remove force-unwrap on re-entry - Fix SpeechRecognizer: handle partial result + error simultaneously to prevent recognition task from silently dying - Fix scroll tracking: replace unreliable onAppear/onDisappear on zero-height view with onScrollGeometryChange for reliable bottom detection - Fix handlePartialTextStabilized: use stored sink value instead of reading speechRecognizer.currentText directly (timing consistency) - Fix lastConsumedTail: unconditionally clear after first use to prevent stale overlap stripping in subsequent recognition sessions - Fix detectLanguageIfNeeded: check isCapturing before language change - Fix LanguagePickerView: add defensive guard and correct swap announcement - Fix MenuBarView: show "Auto" when source language is auto-detect - Update README with comprehensive setup guide and feature documentation
… fixes - Add dual display mode (combined/split) with independent recognition and translation windows - Add live translation that shows translations as text is being recognized - Fix invisible overlay blocking clicks by setting explicit hosting view frame - Add screen boundary clamping to prevent overlay windows from appearing off-screen - Add "Reset All Overlay Windows" button in Settings > Display Mode - Add duplicate text filtering, punctuation-only entry removal - Improve auto-scroll to always follow latest text - Sync lock/unlock state across both overlay windows - Update README with comprehensive setup guide, usage instructions, and troubleshooting
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Changes
New Files
RecognitionOverlayView.swift— Split mode recognition-only overlayTranslationOverlayView.swift— Split mode translation-only overlay with.translationTaskModified Files
AppState.swift— Live translation debouncing, duplicate detection, punctuation filtering, overlap detectionOSTApp.swift— Split mode lock syncWindowManager.swift— Dual window management, side-by-side reset, screen-aware positioningOverlayWindow.swift— Role-based frame persistence, explicit hosting view frame, screen clampingUserSettings.swift— Display mode and overlay2 frame settingsFontSettingsView.swift— Display Mode picker, Reset All button, per-window controlsSettingsView.swift— Forward new callbacksSubtitleView.swift— Always-on auto-scroll, bottom padding fixbuild.sh— New source files addedTest plan
./build.sh