Skip to content

Conversation

@threebeanbags
Copy link
Contributor

Summary

The base engine names (e.g., 'openai', 'anthropic') are persisted correctly in the backend configuration. However, ProviderGrid.tsx was appending a _compatible suffix to the engine key before passing it to CustomProviderForm.

CustomProviderForm expects the raw base engine name to correctly map it to the dropdown selection. Receiving the suffixed version caused the lookup to fail, defaulting the provider type to "OpenAI Compatible" and subsequently overwriting the correct configuration on save.

This fix removes the unnecessary suffix, ensuring the form receives the correct engine key. This change is isolated to the custom provider configuration flow in the UI.

Type of Change

  • Feature
  • Bug fix
  • Refactor / Code quality
  • Performance improvement
  • Documentation
  • Tests
  • Security fix
  • Build / Release
  • Other (specify below)

AI Assistance

  • This PR was created or reviewed with AI assistance

Testing

Manual testing for following cases:

  • verified Anthropic custom providers now save/reload correctly
  • verified OpenAI + Ollama providers still work

Automated testing:

  • no additional tests failed with this change

Related Issues

Relates to #5908

The base engine names (e.g., 'openai', 'anthropic') are persisted correctly in the backend configuration. However, `ProviderGrid.tsx` was appending a `_compatible` suffix to the engine key before passing it to `CustomProviderForm`.

`CustomProviderForm` expects the raw base engine name to correctly map it to the dropdown selection. Receiving the suffixed version caused the lookup to fail, defaulting the provider type to "OpenAI Compatible" and subsequently overwriting the correct configuration on save.

This fix removes the unnecessary suffix, ensuring the form receives the correct engine key. This change is isolated to the custom provider configuration flow in the UI.

Signed-off-by: threebeanbags <[email protected]>

const initialData = editingProvider && {
engine: editingProvider.config.engine.toLowerCase() + '_compatible',
engine: editingProvider.config.engine.toLowerCase(),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice. the lowercase probably doesn't hurt, but it feels like another possible gotcha

@zanesq zanesq merged commit 1f26912 into block:main Dec 11, 2025
15 checks passed
katzdave added a commit that referenced this pull request Dec 12, 2025
…nses-streaming

* 'main' of github.com:block/goose:
  Fix community page mobile responsiveness and horizontal overflow (#6082)
  Tool reply meta (#6074)
  chore: avoid accidentally using native tls again (#6086)
  Update vars to be capitalised to be in line with other variables in config file (#6085)
  docs: restructure recipe reference (#5972)
  docs: configure custom providers (#6044)
  docs: Community All-Stars Spotlight November 2025, CodeTV Hackathon edition (#6070)
  fix: include file attachments in queued messages (#5961)
  fix(ui): prevent incorrect provider type suffix in update dialog #5908 (#5909)
  docs: mcp elicitation (#6060)
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.

3 participants