Repository navigation
fix: keep infer provider workflows responsive and selectable - #115054
Conversation
|
Codex review: needs maintainer review before merge. Reviewed July 28, 2026, 3:54 AM ET / 07:54 UTC. ClawSweeper reviewWhat this changesThis PR makes Infer provider inspection avoid live catalog discovery, recognizes bundled refreshable models during local resolution, reports environment-backed provider state, and adds Merge readinessKeep this PR open for explicit maintainer review. The supplied patch is focused and the PR body includes credible after-fix live evidence, but the protected Priority: P2 Review scores
Verification
How this fits togetherThe Infer CLI reads model and provider catalog data to inspect or invoke local capabilities, then passes a resolved provider and model selection into the relevant runtime. This change affects catalog inspection, model resolution, provider status output, and TTS conversion selection without changing persisted configuration. flowchart LR
A[Operator runs Infer CLI] --> B[Infer model or TTS command]
B --> C[Prepared catalog and manifest metadata]
C --> D[Provider and model resolution]
D --> E[Local probe or TTS runtime]
E --> F[Status, model result, or audio output]
Decision needed
Why: The patch adds a user-visible CLI option rather than only repairing an internal implementation detail, and the protected maintainer signal requires an explicit decision on its durable interface. Before merge
Agent review detailsSecurityNone. PR surfaceSource +39, Tests +137, Docs +2. Total +178 across 7 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Copy recommended automerge instructionTechnical reviewBest possible solution: Keep the no-discovery inspection path and canonical provider normalization, then merge only after the owning maintainer confirms that provider-only TTS selection is the intended durable Infer CLI contract. Do we have a high-confidence way to reproduce the issue? No independent high-confidence reproduction was completed in this review. The supplied before/after evidence and the changed catalog, resolver, and TTS command paths make the reported behavior source-reproducible, but the credential-backed matrix was not rerun here. Is this the best way to solve the issue? Mostly yes: the patch reuses prepared catalog data, manifest metadata, canonical environment metadata, and provider normalization instead of adding persisted settings or parallel runtime paths. Maintainer confirmation is still needed because the new AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 5a8939d88e16. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Maintainer decision: accept |
|
Merged via squash.
|
What Problem This Solves
Fixes issues where
openclaw infermodel inspection could stall while activating credential-backed provider discovery, explicit local probes could reject bundled refreshable catalog models as unknown, provider status ignored environment credentials, and TTS providers without model overrides could not be selected frominfer tts convert.Why This Change Was Made
Model inspection now reads the prepared catalog without live discovery and merges trusted manifest rows so runtime-declared models remain inspectable. Explicit bundled-catalog fallback may resolve refreshable manifest rows while preserving provider runtime precedence. Provider summaries use the canonical provider environment metadata, and TTS conversion adds an additive, normalized
--providerselector with conflict validation against--model.User Impact
Operators with many provider credentials can inspect infer models without triggering every live catalog, direct model probes work for bundled refreshable models such as Anthropic, environment-backed providers report configured state correctly, and provider-only TTS backends such as Xiaomi can be invoked directly.
Evidence
infer model providers --jsonexceeded 90 seconds under the broad credential matrix. After: the same isolated inspection completed in 24 seconds, included trusted manifest providers, and reported environment-backed provider state.infer model run --local --model anthropic/claude-haiku-4-5 ...failed as an unknown model. After: the live probe returned exactlypong.infer tts convert --provider xiaomi ...produced audio successfully.tbx_01kyknxf0rna8e849cg56t40js: 119 capability CLI tests and 146 model-resolution tests passed; finalpnpm check:changedandpnpm buildpassed. Run: https://github.com/openclaw/openclaw/actions/runs/30334301969