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
[Bug]: OpenAI-compatible provider dialog drops the "Saved key kept" hint when only the base URL’s form changes #49201
main at c9f7ee4 (found while translating the settings pages into Traditional Chinese; confirmed by reading the code).
Details
Settings → Voice → OpenAI-compatible provider. When a key is already saved, the API key field shows a "saved key is kept" hint. The dialog decides this with saved.baseUrl === baseUrl.trim() (OpenAiCompatibleProviderDialog.tsx), while the store keeps the saved key whenever the two URLs normalize to the same transcription endpoint (openai-compatible-speech-provider-store.ts).
So adding or removing a trailing /, or pasting the full /audio/transcriptions URL, hides the hint even though saving keeps the key and sends it to the same endpoint. The user is told to re-enter a key that is not needed. No key goes anywhere new; only the hint is wrong.
Expected: the dialog uses the same "same endpoint" rule as the store.
Root cause: the dialog keeps the "Saved key kept" hint only when saved.baseUrl === baseUrl.trim() (src/renderer/src/components/settings/voice/OpenAiCompatibleProviderDialog.tsx:60). Saving still keeps the key when both values normalize to the same transcription endpoint (savedKeyFor in src/main/speech/openai-compatible-speech-provider-store.ts:88-90, via openAiCompatibleTranscriptionUrl). A trailing slash, or pasting the full /audio/transcriptions URL, hides the hint even though the saved key is still used.
Fix: use that same endpoint comparison for the hint. PR shortly.
Taking this — the dialog's strict === on the raw string doesn't match the store's endpoint-normalized comparison, so the hint drops exactly in the cases where the saved key still applies. Fix is to share the store's openAiCompatibleTranscriptionUrl normalization with the dialog; PR coming.
Releasing this. joei4cm already said a PR is coming for the same endpoint comparison, so I will not open a second one. The local commit stays unpublished.
Activity
bbingz commentedon Nov 25, 2026
I'd like to take this one.
Root cause: the dialog keeps the "Saved key kept" hint only when
saved.baseUrl === baseUrl.trim()(src/renderer/src/components/settings/voice/OpenAiCompatibleProviderDialog.tsx:60). Saving still keeps the key when both values normalize to the same transcription endpoint (savedKeyForinsrc/main/speech/openai-compatible-speech-provider-store.ts:88-90, viaopenAiCompatibleTranscriptionUrl). A trailing slash, or pasting the full/audio/transcriptionsURL, hides the hint even though the saved key is still used.Fix: use that same endpoint comparison for the hint. PR shortly.
joei4cm commentedon Nov 25, 2026
Taking this — the dialog's strict
===on the raw string doesn't match the store's endpoint-normalized comparison, so the hint drops exactly in the cases where the saved key still applies. Fix is to share the store'sopenAiCompatibleTranscriptionUrlnormalization with the dialog; PR coming.bbingz commentedon Nov 25, 2026
Releasing this. joei4cm already said a PR is coming for the same endpoint comparison, so I will not open a second one. The local commit stays unpublished.
fix(speech): show "Saved key kept" hint for equivalent OpenAI-compati…
fix(speech): show "Saved key kept" hint for equivalent OpenAI-compati…