You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(web): Voice Models language menu resets its search filter on close - #42321
In Settings → Voice, the Models language filter menu never clears its "Search languages" input when closed, unlike other searchable menus in the app. Typing a query such as japanese, closing the menu with Esc, and reopening it keeps the stale filter active, hiding "All languages" and every other language until the text is deleted.
Reproduced on Linux in the web app, base 51a721da44a.
Change
apps/web/src/components/settings/VoiceSettingsPanel.tsx: add onOpenChange={(open) => (open ? undefined : setLanguageSearch(""))} to the language filter <Menu> in SpeechModelBrowser, matching the worktree repositories menu.
apps/web/src/components/settings/VoiceSettingsPanel.browser.test.tsx: assert in tests the selected model after download and preserves its transcript across filters that reopening the language menu leaves "Search languages" empty and shows "All languages".
Scope
Small fix of an obvious bug in the voice model language filter menu, so no issue is needed.
Verification
An AI agent ran all checks below.
Setup: Linux, Chromium web client, light theme, 1280x800, fresh isolated server data on each commit, server named "Test machine", Transcribe with set to that server.
Steps: Settings → Voice → Models → language filter → type "japanese" → Esc → reopen the menu.
51a721d: after typing "japanese", Esc and reopening, the search still reads "japanese" and "All languages" is hidden
6a41325: after the same steps, the search is empty and "All languages" leads the full list
Browser test (apps/web/src/components/settings/VoiceSettingsPanel.browser.test.tsx): running the head test against the base source fails 1 failed | 20 passed (21) at the new empty-search assertion (received fr); on 6a413252588, 3 of 3 runs pass (21 passed (21)).
Manual outside-click check: clicking outside the language menu on 6a413252588 also clears the search filter on reopen.
vp run check:changed: exited 0 (format, lint, knip 1/2, knip 2/2, typecheck (2 packages), test (1 files) with 21 passed (21), react compiler (1 files) with 1 passed | 1485 skipped (1486)).
Not shown: desktop was not run separately (it renders the same settings panel); mobile has no voice model language menu.
Reviewing files that changed from the base of the PR and between 6a41325 and d503551.
You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.
Use the checkbox below for a quick retry:
Trigger review
No actionable comments were generated in the recent review.
Walkthrough
The language-filter menu now clears its search when it closes. The browser test checks that reopening the menu shows an empty search and the “All languages” option.
Changes: Language filter behavior
Layer / File(s)
Summary
Reset search on menu close apps/web/src/components/settings/VoiceSettingsPanel.tsx, apps/web/src/components/settings/VoiceSettingsPanel.browser.test.tsx
Closing the language menu clears the search. The test checks that reopening the menu shows an empty search and “All languages.”
Closing the language filter menu now clears its search, so reopening it shows all languages instead of a stale filter. The change is small and localized to the Voice settings panel, with a browser test covering the reset.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
The title names the main change: the Voice Models language menu now resets its search filter on close. It follows the conventional commit format, and the changeset matches it: a close handler clears t…
Description check
The description follows the template. It has Problem, Change, Scope, and Verification sections. The Problem section gives the expected behavior and reproduction steps. The Change section names the fil…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Title check
Explanation
The title names the main change: the Voice Models language menu now resets its search filter on close. It follows the conventional commit format, and the changeset matches it: a close handler clears the language search in SpeechModelBrowser, and a browser test asserts the reset.
Full details: Description check
Explanation
The description follows the template. It has Problem, Change, Scope, and Verification sections. The Problem section gives the expected behavior and reproduction steps. The Change section names the files and the handler. The Scope section explains why no issue is linked. The Verification section lists focused test results and a manual check, with before and after screenshots. It also notes what was not checked, namely desktop and mobile. The agent model line is present. The description does not link a GitHub issue, but the template allows a stated reason for a small obvious fix.
Finishing Touches
Generate unit tests (beta)
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 3 remain after this review.
Real web app, Chromium, 1280×800, light theme; fresh synthetic state on both commits. In Settings → Voice, selected the local transcription environment, searched japanese, dismissed with Escape and reopened; then searched fren, clicked outside and reopened.
Base retains both queries and hides All languages. Head clears both queries, restores All languages and preserves English selection. scenarios:prove exited 0.
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
size:XS0-9 changed lines (additions + deletions).vouch:unvouchedAuthor is not yet trusted in the VOUCHED list.
2 participants
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.
Problem
In Settings → Voice, the Models language filter menu never clears its "Search languages" input when closed, unlike other searchable menus in the app. Typing a query such as
japanese, closing the menu with Esc, and reopening it keeps the stale filter active, hiding "All languages" and every other language until the text is deleted.Reproduced on Linux in the web app, base
51a721da44a.Change
apps/web/src/components/settings/VoiceSettingsPanel.tsx: addonOpenChange={(open) => (open ? undefined : setLanguageSearch(""))}to the language filter<Menu>inSpeechModelBrowser, matching the worktree repositories menu.apps/web/src/components/settings/VoiceSettingsPanel.browser.test.tsx: assert intests the selected model after download and preserves its transcript across filtersthat reopening the language menu leaves "Search languages" empty and shows "All languages".Scope
Small fix of an obvious bug in the voice model language filter menu, so no issue is needed.
Verification
An AI agent ran all checks below.
Setup: Linux, Chromium web client, light theme, 1280x800, fresh isolated server data on each commit, server named "Test machine", Transcribe with set to that server.
Steps: Settings → Voice → Models → language filter → type "japanese" → Esc → reopen the menu.
apps/web/src/components/settings/VoiceSettingsPanel.browser.test.tsx): running the head test against the base source fails1 failed | 20 passed (21)at the new empty-search assertion (receivedfr); on6a413252588, 3 of 3 runs pass (21 passed (21)).6a413252588also clears the search filter on reopen.vp run check:changed: exited0(format,lint,knip 1/2,knip 2/2,typecheck (2 packages),test (1 files)with21 passed (21),react compiler (1 files)with1 passed | 1485 skipped (1486)).Not shown: desktop was not run separately (it renders the same settings panel); mobile has no voice model language menu.
Generated with Gemini 4 Neon in T3 Code Nightly