Skip to content

fix(live-transcription): read provider capabilities under the configured app id - #20518

Open
ikusteu wants to merge 1 commit into
nextcloud:mainfrom
codemyriad:fix/20517/live-transcription-capabilities-key
Open

ikusteu wants to merge 1 commit into
nextcloud:mainfrom
codemyriad:fix/20517/live-transcription-capabilities-key

Conversation

@ikusteu

@ikusteu ikusteu commented Nov 26, 2026

Copy link
Copy Markdown

☑️ Resolves

Talk reads the capabilities of the live transcription provider under the hardcoded key live_transcription. The official app builds that key from its own app id, so it only matches because the app is called live_transcription.

Since #20369 the provider app id is configurable. A provider with another id that follows the same convention answers under its own id, and Talk rejects it with response-capabilities-wrong-structure.

This PR reads the capabilities under the configured app id (live_transcription_app_id) instead. Nothing changes for the official app.

Behavior change to be aware of: a provider with another id that answers under the key live_transcription is no longer accepted. It has to answer under its own app id.

Testing: not validated on a live Nextcloud instance yet, and no unit tests were run. To test:

  1. Set live_transcription_app_id to an external app that answers GET /capabilities under its own app id.
  2. Request GET /ocs/v2.php/apps/spreed/api/v1/live-transcription/translation-languages.
  3. Before: the request fails and the log shows "wrong capabilities structure". After: the answer is built from the capabilities of the app.

AI (if applicable)

  • The content of this PR was partly or fully generated using AI

🛠️ API Checklist

🚧 Tasks

  • Validate on a live instance with a provider that uses another app id

🏁 Checklist

  • ⛑️ Tests (unit and/or integration) are included or not possible
  • 📘 API documentation in docs/ has been updated or is not required
  • 🔖 Capability is added or not needed

Tests: none included. LiveTranscriptionService has no unit tests on main yet.

…red app id

The official live_transcription app uses its app id as the top level key
of its capabilities. Since the provider app id is configurable, a provider
following the same convention under another id was rejected as having a
wrong capabilities structure.

Assisted-by: Claude Code:claude-fable-5-2
Signed-off-by: Ivan Kušt <ivankust57@gmail.com>
@nickvergessen nickvergessen added this to the ☃️ Next Major (36) milestone Nov 26, 2026
@nickvergessen nickvergessen added bug feature: settings ⚙️ Settings and config related issues feature: api 🛠️ OCS API for conversations, chats and participants labels Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug feature: api 🛠️ OCS API for conversations, chats and participants feature: settings ⚙️ Settings and config related issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Read live transcription provider's capabilities by app id (not hardcoded live_transcription)

2 participants