Skip to content

fix(gradium): keep isConfigured from throwing on invalid baseUrl - #108551

Merged
steipete merged 6 commits into
openclaw:mainfrom
moguangyu5-design:fix/gradium-isconfigured-baseurl
Jul 16, 2026
Merged

steipete merged 6 commits into
openclaw:mainfrom
moguangyu5-design:fix/gradium-isconfigured-baseurl

Conversation

@moguangyu5-design

@moguangyu5-design moguangyu5-design commented Jul 16, 2026 •

Copy link
Copy Markdown
Contributor

Closes #108550

What Problem This Solves

Gradium's isConfigured predicate threw when providerConfig.baseUrl was malformed or targeted a disallowed host. Provider selection expects a boolean predicate, so one bad optional-provider configuration could break enumeration instead of being skipped.

Why This Change Was Made

isConfigured now catches configuration validation failures and returns false. The actual synthesis paths still validate baseUrl before dispatching the API key, preserving the request-time security boundary.

User Impact

TTS provider selection gracefully skips an unusable Gradium configuration instead of surfacing a hard error.

Evidence

  • Regression suite: extensions/gradium/speech-provider.test.ts, covering a disallowed host and a syntactically invalid URL.
  • Exact reviewed head: f4406e26b38c48c755da9e4f445c236984783fff, based on current main 957cc81175a3f993118951e352fd2b13e3982487.
  • Exact-head autoreview: clean, no accepted/actionable findings.
  • Hosted gates: CI run 29468369688, green.

@steipete
steipete merged commit cf8cfa8 into openclaw:main Jul 16, 2026
83 checks passed
@steipete

Copy link
Copy Markdown
Contributor

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 16, 2026
…nclaw#108551)

* fix(gradium): keep isConfigured from throwing on invalid baseUrl

* refactor(gradium): narrow configuration validation

Co-authored-by: moguangyu5-design <[email protected]>

---------

Co-authored-by: moguangyu5-design <[email protected]>
Co-authored-by: Peter Steinberger <[email protected]>
Co-authored-by: Peter Steinberger <[email protected]>
zooqueen pushed a commit to zooqueen/openclaw that referenced this pull request Sep 11, 2026
…nclaw#108551)

* fix(gradium): keep isConfigured from throwing on invalid baseUrl

* refactor(gradium): narrow configuration validation

Co-authored-by: moguangyu5-design <[email protected]>

---------

Co-authored-by: moguangyu5-design <[email protected]>
Co-authored-by: Peter Steinberger <[email protected]>
Co-authored-by: Peter Steinberger <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Gradium speech provider isConfigured throws on invalid baseUrl

2 participants