Skip to content

[Bug]: OpenAI-compatible provider dialog drops the "Saved key kept" hint when only the base URL’s form changes #49201

Done

Description

@Minidoracat

Where were you using Orca?

Desktop only

Operating system

Windows

Orca version

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.

Activity

  1. bbingz commented on Nov 25, 2026

    @bbingz
    Contributor

    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 (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.

  2. joei4cm commented on Nov 25, 2026

    @joei4cm
    Contributor

    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.

  3. bbingz commented on Nov 25, 2026

    @bbingz
    Contributor

    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.

  4. added 2 commits that reference this issue on Nov 25, 2026
    28a6b6c
    98014fe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions