Skip to content

fix: keep infer provider workflows responsive and selectable - #115054

Merged
steipete merged 1 commit into
mainfrom
codex/infer-stress-fixes
Jul 28, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/infer-stress-fixes

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes issues where openclaw infer model 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 from infer 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 --provider selector 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

  • Before: infer model providers --json exceeded 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.
  • Before: infer model run --local --model anthropic/claude-haiku-4-5 ... failed as an unknown model. After: the live probe returned exactly pong.
  • Before: Xiaomi TTS could not be selected because the CLI required a model override that the provider rejects. After: infer tts convert --provider xiaomi ... produced audio successfully.
  • Live credential-backed matrix: 18 text model routes, 7 image providers, 8 transcription providers, 7 TTS providers, 6 web-search providers plus Firecrawl fetch, 2 embedding providers, and 8 video providers completed successfully. Remaining observations were provider-side quota/capacity/auth responses or source-only plugins not installed in the isolated package runtime.
  • Blacksmith Testbox tbx_01kyknxf0rna8e849cg56t40js: 119 capability CLI tests and 146 model-resolution tests passed; final pnpm check:changed and pnpm build passed. Run: https://github.com/openclaw/openclaw/actions/runs/30334301969

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation cli CLI command changes agents Agent runtime and tooling size: S maintainer Maintainer-authored PR labels Jul 28, 2026
@steipete steipete self-assigned this Jul 28, 2026
@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. labels Jul 28, 2026
@clawsweeper

clawsweeper Bot commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed July 28, 2026, 3:54 AM ET / 07:54 UTC.

ClawSweeper review

What this changes

This PR makes Infer provider inspection avoid live catalog discovery, recognizes bundled refreshable models during local resolution, reports environment-backed provider state, and adds infer tts convert --provider <id> for provider-only TTS backends.

Merge readiness

⚠️ Ready for maintainer review - 3 items remain

Keep 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 maintainer label and the new public Infer CLI selector require a human decision on the stable command contract before merge.

Priority: P2
Reviewed head: 46a4f11eb4e3fe255d85a5be04ce732fc0be09d7
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The branch has strong supplied live behavior proof and a focused implementation, with maintainer confirmation of the new public CLI surface remaining before merge.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (live_output): The PR body supplies concrete after-fix live outcomes for model inspection, a local Anthropic probe, and Xiaomi provider-only TTS, plus a linked Testbox run and successful real-behavior-proof check.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (live_output): The PR body supplies concrete after-fix live outcomes for model inspection, a local Anthropic probe, and Xiaomi provider-only TTS, plus a linked Testbox run and successful real-behavior-proof check.
Evidence reviewed 5 items Focused CLI contract change: The branch adds a normalized --provider selector to TTS conversion, validates conflicts with --model, and forwards a provider-only selection without inventing a model override.
Inspection avoids live discovery: The branch adds an inspection catalog path that combines the prepared read-only catalog with trusted manifest rows, which matches the stated goal of keeping provider listing responsive.
CLI metadata and documentation align: The new selector is exposed in capability metadata and documented with a provider-only Xiaomi example, reducing discoverability drift for the public command surface.
Findings None None.
Security None None.

How this fits together

The 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]
Loading

Decision needed

Question Recommendation
Should infer tts convert --provider <id> be accepted as the supported public selector for provider-only TTS backends, with --model remaining an optional same-provider override? Accept the provider-only selector: Approve the additive --provider contract and retain the documented same-provider conflict validation.

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

  • Resolve merge risk (P1) - The additive infer tts convert --provider flag becomes part of a public CLI contract; maintainers should confirm its naming, precedence with --model, and help/documentation behavior before treating it as stable.
  • Complete next step (P2) - A maintainer must approve the new public TTS provider-selection contract; no mechanical repair is identified from the supplied evidence.
Agent review details

Security

None.

PR surface

Source +39, Tests +137, Docs +2. Total +178 across 7 files.

View PR surface stats
Area Files Added Removed Net
Source 4 45 6 +39
Tests 2 137 0 +137
Docs 1 2 0 +2
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 7 184 6 +178

Review metrics

Metric Value Why it matters
Public Infer selector 1 added CLI option infer tts convert gains --provider, so maintainers should confirm the user-facing selection and precedence contract before merge.

Merge-risk options

Maintainer options:

  1. Confirm the public CLI contract before merge (recommended)
    Have the owning maintainer confirm that --provider is the durable provider-only TTS selection surface and that its precedence with --model is intentional.
  2. Accept the additive CLI surface
    Merge with the explicit understanding that provider-only TTS selection is now supported through this new public flag.
Copy recommended automerge instruction
@clawsweeper automerge

Special instructions:
Confirm the public `infer tts convert --provider` contract and retain the documented conflict validation with `--model`.

Technical review

Best 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 --provider flag establishes a public CLI contract.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 5a8939d88e16.

Labels

Label changes:

  • add P2: This is a focused provider and CLI workflow improvement with bounded user impact rather than an emergency runtime failure.
  • add merge-risk: 🚨 compatibility: The branch introduces a new public Infer CLI selector whose long-term semantics and interaction with --model become an operator-facing contract.
  • add proof: sufficient: Contributor real behavior proof is sufficient. The PR body supplies concrete after-fix live outcomes for model inspection, a local Anthropic probe, and Xiaomi provider-only TTS, plus a linked Testbox run and successful real-behavior-proof check.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (live_output): The PR body supplies concrete after-fix live outcomes for model inspection, a local Anthropic probe, and Xiaomi provider-only TTS, plus a linked Testbox run and successful real-behavior-proof check.

Label justifications:

  • P2: This is a focused provider and CLI workflow improvement with bounded user impact rather than an emergency runtime failure.
  • merge-risk: 🚨 compatibility: The branch introduces a new public Infer CLI selector whose long-term semantics and interaction with --model become an operator-facing contract.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (live_output): The PR body supplies concrete after-fix live outcomes for model inspection, a local Anthropic probe, and Xiaomi provider-only TTS, plus a linked Testbox run and successful real-behavior-proof check.
  • proof: sufficient: Contributor real behavior proof is sufficient. The PR body supplies concrete after-fix live outcomes for model inspection, a local Anthropic probe, and Xiaomi provider-only TTS, plus a linked Testbox run and successful real-behavior-proof check.

Evidence

What I checked:

  • Focused CLI contract change: The branch adds a normalized --provider selector to TTS conversion, validates conflicts with --model, and forwards a provider-only selection without inventing a model override. (src/cli/capability-cli/tts.ts:45, 46a4f11eb4e3)
  • Inspection avoids live discovery: The branch adds an inspection catalog path that combines the prepared read-only catalog with trusted manifest rows, which matches the stated goal of keeping provider listing responsive. (src/cli/capability-cli/model.ts:54, 46a4f11eb4e3)
  • CLI metadata and documentation align: The new selector is exposed in capability metadata and documented with a provider-only Xiaomi example, reducing discoverability drift for the public command surface. (src/cli/capability-cli/metadata.ts:159, 46a4f11eb4e3)
  • After-fix behavior evidence: The PR body reports a credential-backed before/after matrix, including a local Anthropic probe returning pong, Xiaomi provider-only TTS audio output, and a linked Testbox run with focused capability and model-resolution tests passing. (46a4f11eb4e3)
  • Required maintainer handling: The supplied GitHub timeline shows the maintainer label and assignment, which are protected maintainer signals under repository review policy and prevent automatic cleanup or merge disposition.

Likely related people:

  • steipete: The supplied PR metadata identifies steipete as the author and assignee and attributes the live provider-matrix validation to this branch; no current-main history trail was available in the read-only review environment. (role: current implementation contact; confidence: low; commits: 46a4f11eb4e3; files: src/cli/capability-cli/model.ts, src/cli/capability-cli/tts.ts)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Confirm that infer tts convert --provider is the intended stable public selection contract.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@steipete

Copy link
Copy Markdown
Contributor Author

Maintainer decision: accept infer tts convert --provider <id> as the stable additive provider-only selection contract. --model <provider/model> remains optional; when both are supplied, they must resolve to the same normalized provider. Keep the documented conflict validation.

@steipete
steipete merged commit 521d05f into main Jul 28, 2026
131 of 145 checks passed
@steipete
steipete deleted the codex/infer-stress-fixes branch July 28, 2026 08:05
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling cli CLI command changes docs Improvements or additions to documentation maintainer Maintainer-authored PR merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: S status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant