Skip to content

fix(tts): resolve TTS API keys through auth profile store#477

Merged
alexey-pelykh merged 1 commit intomainfrom
fix/tts-auth-profile-resolution
Mar 8, 2026
Merged

fix(tts): resolve TTS API keys through auth profile store#477
alexey-pelykh merged 1 commit intomainfrom
fix/tts-auth-profile-resolution

Conversation

@alexey-pelykh
Copy link
Copy Markdown

Summary

  • Wires resolveTtsApiKey through resolveApiKeyForProvider so TTS providers (openai, elevenlabs) use the unified auth profile store as the primary credential source
  • TTS-specific config (messages.tts.{provider}.apiKey) remains as a backwards-compatible fallback
  • resolveTtsApiKey becomes async, cascading to getTtsProvider, isTtsProviderConfigured, buildStatusMessage, and their callers in gateway, commands, and status display

Closes #402

Test plan

  • Typecheck passes (tsgo — 0 errors in src/)
  • Lint passes (oxlint — 0 errors)
  • All 876 tests pass across 95 test files
  • getTtsProvider test updated to async with withEnvAsync
  • buildStatusMessage tests updated to async (19 call sites)

🤖 Generated with Claude Code

Wire resolveTtsApiKey through resolveApiKeyForProvider so TTS
providers (openai, elevenlabs) use the unified auth profile store
as the primary credential source, with TTS-specific config as
a backwards-compatible fallback.

This makes resolveTtsApiKey async, cascading to getTtsProvider,
isTtsProviderConfigured, and their callers in gateway, commands,
and status display.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@alexey-pelykh alexey-pelykh enabled auto-merge (squash) March 8, 2026 17:19
@alexey-pelykh alexey-pelykh merged commit 1eb6f0f into main Mar 8, 2026
5 checks passed
@alexey-pelykh alexey-pelykh deleted the fix/tts-auth-profile-resolution branch March 8, 2026 17:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(tts): resolve TTS API keys through auth profile store

1 participant