Repository navigation
fix(tts): resolve bundled summary models on cold starts - #146183
Conversation
Use the existing captured static-catalog fallback when preparing TTS summaries before provider discovery has populated a registry. Preserve selected model IDs, plugin policy, credentials, and the shipped injected callback contract. Prove canonical defaults and explicit summary overrides through ordinary TTS with the bundled Kimi provider and synthetic loopback HTTP. Disabled, denied, unallowed, and unknown model controls send no request. Related: #130706
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed September 12, 2026, 12:27 PM ET / 16:27 UTC. ClawSweeper reviewWhat this changesTTS summarization enables the existing bundled model-catalog fallback and adds coverage for cold-start defaults, explicit overrides, and rejected models. Merge readiness✅ Ready for maintainer review The cold-start repair remains necessary on current main. The patch reuses the existing resolver, preserves configured overrides and plugin exclusions, and introduces no blocking correctness finding. Priority: P2 Review scores
Verification
How this fits togetherOpenClaw summarizes long replies before converting them to speech. The summary preparer selects a configured language model, acquires its provider runtime and credentials, and returns text for speech synthesis. flowchart TD
A[Long reply text] --> B[TTS summary preparation]
C[Summary override or default model] --> B
B --> D[Shared model resolver]
E[Bundled catalog and plugin policy] --> D
D --> F[Authenticated model completion]
F --> G[Summary for speech synthesis]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource 0, Tests +175. Total +175 across 2 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep summary selection within the shared completion owner, using its policy-filtered bundled catalog while preserving explicit provider settings and callback compatibility. Do we have a high-confidence way to reproduce the issue? Yes, from source: a cold bundled model absent from the runtime registry cannot reach the flag-gated catalog fallback through current-main TTS preparation. The supplied baseline reports this failure; this review did not execute it. Is this the best way to solve the issue? Yes. Enabling the already-supported resolver path is a focused repair, and the new coverage avoids configured endpoints that could conceal the missing catalog lookup. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 63e204c2e5ed. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
Declare the documented kimi-code, k2p5, and k3[1m] aliases before provider runtime loads. Read the same manifest map from the existing public helper so cold model selection and runtime normalization share one policy. Preserve registered hooks and public exports, and remove the obsolete type-assertion allowance. Static parser regressions fail for all three legacy IDs on the baseline and retain canonical model controls. Related: #130706 Prerequisite: #146183
…6183) Use the existing captured static-catalog fallback when preparing TTS summaries before provider discovery has populated a registry. Preserve selected model IDs, plugin policy, credentials, and the shipped injected callback contract. Prove canonical defaults and explicit summary overrides through ordinary TTS with the bundled Kimi provider and synthetic loopback HTTP. Disabled, denied, unallowed, and unknown model controls send no request. Related: openclaw#130706
…w#146261) Declare the documented kimi-code, k2p5, and k3[1m] aliases before provider runtime loads. Read the same manifest map from the existing public helper so cold model selection and runtime normalization share one policy. Preserve registered hooks and public exports, and remove the obsolete type-assertion allowance. Static parser regressions fail for all three legacy IDs on the baseline and retain canonical model controls. Related: openclaw#130706 Prerequisite: openclaw#146183
Related: #130706, #144354.
What Problem This Solves
Fixes an issue where TTS summarization reports
Unknown modelfor a bundled model on a cold start, even though the captured plugin catalog contains that model. A discovered registry entry or configured provider endpoint could mask the missing fallback path.Why This Change Was Made
Normal TTS preparation now enables the existing captured static-catalog fallback, as the runtime LLM and worker inference callers already do. The change is one replaced production line, with no new option or model resolver. The shipped injected-callback contract is unchanged.
User Impact
Bundled summary defaults and explicit summary-model overrides work before provider discovery populates a registry. Disabled, denied, and unallowed plugins and unknown models remain rejected before HTTP.
Evidence
pnpm buildpassed onb4ad24e9b254be34a57aebb4004940dc4067ae80.The three documented legacy Kimi aliases still fail independently on this build and remain a separate follow-up; this cut repairs canonical catalog availability.
Required CI passed on attempt 2 at the same head. The first attempt had two selected Blacksmith jobs with runner_id 0, no executed steps, no logs, and GitHub annotations that the jobs were never acquired. One failed-job retry completed successfully; no code, tests, deadlines, or runner configuration were changed.