Skip to content

fix(generation): don't submit with a voice profile the model can't use - #1248

Open
procdeveloper wants to merge 1 commit into
jamiepine:mainfrom
procdeveloper:fix/block-unsupported-profile
Open

procdeveloper wants to merge 1 commit into
jamiepine:mainfrom
procdeveloper:fix/block-unsupported-profile

Conversation

@procdeveloper

Copy link
Copy Markdown

Summary

The voice profile list greys out profiles the selected model can't use. But a profile picked earlier stays selected when the model changes. For example, with a Kokoro preset voice selected and TADA chosen as the model, Generate still submitted. The server then failed with:

Preset profile … only supports engine 'kokoro', not 'tada'

The Generate button is now disabled in that state, and Enter-to-submit is blocked too. The tooltip and aria-label say "This voice profile can't be used with the selected model". It uses the existing isProfileCompatibleWithEngine check. The new string is translated into all 9 locales.

Testing

  • tsc --noEmit is clean.
  • Checked in a locally built app on Windows:
    • Kokoro preset profile with TADA 3B selected: Generate is disabled and shows the tooltip.
    • Switching back to Kokoro: Generate works again.

🤖 Generated with Claude Code

The profile list greys out voices the selected model doesn't support, but
the selection survives a model switch, so e.g. a Kokoro preset voice with
TADA selected could still be submitted and failed on the server with
"Preset profile ... only supports engine 'kokoro', not 'tada'". Disable
the Generate button (and Enter-to-submit) in that state and say why.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
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.

2 participants