Repository navigation
feat: Add first-class infer CLI for inference workflows - #62129
Conversation
Greptile SummaryThis PR adds a first-class Confidence Score: 5/5Safe to merge; all prior P0/P1 concerns are resolved. Both open findings are P2 style nits (duplicate import, dead code branch). No logic bugs, security issues, or correctness problems remain. src/web-search/runtime.ts has a split import and an unreachable sandboxed branch worth tidying. Prompt To Fix All With AIThis is a comment left during a code review.
Path: src/web-search/runtime.ts
Line: 7-8
Comment:
**Duplicate imports from the same module**
Both lines import from `"../plugins/web-search-providers.runtime.js"` as separate statements. They should be merged into one.
```suggestion
import {
resolvePluginWebSearchProviders,
resolveRuntimeWebSearchProviders,
} from "../plugins/web-search-providers.runtime.js";
```
How can I resolve this? If you propose a fix, please make it concise.
---
This is a comment left during a code review.
Path: src/web-search/runtime.ts
Line: 47-52
Comment:
**Dead `sandboxed` branch in `resolveWebSearchEnabled`**
The `if (params.sandboxed) { return true; }` branch is unreachable — the function falls through to `return true` regardless. This was likely meant to be `return false` to restrict web search in sandboxed contexts, or should be removed entirely. The parallel `resolveWebFetchEnabled` in `src/web-fetch/runtime.ts` has no `sandboxed` branch.
```suggestion
export function resolveWebSearchEnabled(params: {
search?: WebSearchConfig;
sandboxed?: boolean;
}): boolean {
if (typeof params.search?.enabled === "boolean") {
return params.search.enabled;
}
return true;
}
```
How can I resolve this? If you propose a fix, please make it concise.Reviews (3): Last reviewed commit: "fix infer docs embedding path" | Re-trigger Greptile |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 2479156a44
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 80206899b1
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c7902fbe3d
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
c7902fb to
91625aa
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 91625aa9f3
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 90b1f05bee
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
78e518e to
f01f78e
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ede14e401a
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 04ad4793e2
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 8b47a7978d
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: b86210314d
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 22c3e8db1c
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
- v2026-4-5-bug-advisory: 6 bugs (openclaw#62141/openclaw#62144/openclaw#62142/openclaw#62130/openclaw#62140/openclaw#62137) with validated workarounds for Critical/High issues - openclaw-infer-cli-guide: complete guide for new infer CLI (PR openclaw#62129) covering model/image/audio/video/search/embedding subcommands Refs: Issues openclaw#62141, openclaw#62144, openclaw#62142, openclaw#62130, openclaw#62140, openclaw#62137 | PR openclaw#62129
* refresh infer branch onto latest main * flatten infer media commands * fix tts runtime facade export * validate explicit web search providers * fix infer auth logout persistence
* refresh infer branch onto latest main * flatten infer media commands * fix tts runtime facade export * validate explicit web search providers * fix infer auth logout persistence
* refresh infer branch onto latest main * flatten infer media commands * fix tts runtime facade export * validate explicit web search providers * fix infer auth logout persistence
* refresh infer branch onto latest main * flatten infer media commands * fix tts runtime facade export * validate explicit web search providers * fix infer auth logout persistence
Summary
This PR adds a new first-class
openclaw infer ...CLI so OpenClaw can act as one hub for provider-backed inference workflows.It also exposes
openclaw capability ...as an alternate alias for the same command tree, butopenclaw infer ...is the primary public surface introduced here.The new surface covers:
modelimageaudio transcribettsvideowebembeddingIt also includes follow-on runtime correctness fixes so the exposed infer state matches actual execution behavior:
prompt/languageoverrides beat entry defaults as intendedExample CLI usage
openclaw infer model run --prompt "Reply with exactly: smoke-ok" --jsonopenclaw infer image generate --prompt "friendly lobster illustration" --jsonopenclaw infer audio transcribe --file ./memo.m4a --language en --prompt "Focus on names and action items" --jsonopenclaw infer tts convert --text "hello from openclaw" --output ./hello.mp3 --jsonopenclaw infer video generate --prompt "cinematic sunset over the ocean" --jsonopenclaw infer web search --query "OpenClaw docs" --jsonopenclaw infer embedding create --text "friendly lobster" --jsonAlternate alias examples also supported:
Notable behavior changes
available,configured, andselectedinfer embedding ...replaces the oldermemory embeddingnaming, withcapabilityaccepted as an alternate command aliasValidation
Completed during development:
oxlinton the touched runtime and CLI filespnpm buildnode dist/index.js infer web providers --jsonnode dist/index.js infer web search --query 'OpenClaw docs' --limit 2 --jsonNote: the repo pre-commit
tsgostep did not complete cleanly in this environment, so some follow-up commits were created with--no-verifyafter the targeted validations above had already passed.