Environment
- OpenClaw 2026.4.10 (44e5b62)
- macOS 26.1.0 (arm64), Mac Mini M2 Pro
- Codex CLI 0.120.0
- Node v25.9.0
Config
plugins.entries.codex.enabled: true
codex in plugins.allow
agents.defaults.model.primary: "codex/gpt-5.4"
plugins.entries.codex.config.discovery.enabled: true
plugins.entries.codex.config.discovery.timeoutMs: 10000
Symptoms
- Gateway startup logs
startup model warmup failed for codex/gpt-5.4: Error: Unknown model: codex/gpt-5.4 on every restart
openclaw models list shows only the 2 hardcoded fallback models (gpt-5.4, gpt-5.4-mini) under codex/, not the full discovered catalog
openclaw models list --all --provider codex returns "No models found"
openclaw models list --all --json shows 0 models with provider=codex, while openai-codex has 9 discovered models
openclaw models status --agent claude reports "Missing auth - codex"
- The Codex plugin shows as "loaded" in
openclaw plugins list but is NOT in the gateway ready plugin list (10 plugins listed, codex absent)
What Works
codex app-server --listen stdio:// responds to initialize + model/list in <100ms, returning 5+ models
openclaw agent --agent claude --message "test" successfully uses codex/gpt-5.4 (provider=codex, model=gpt-5.4, status=ok)
- The Codex harness works at runtime for actual messages — the provider catalog registration is the only broken part
Root Cause Hypothesis
The Codex provider registers with catalog.order: "late" in the plugin code. The gateway warmup check runs before the late-order catalog has completed, so warmup fails with "Unknown model." The catalog builder (buildCodexProviderCatalog) either never runs or its result is not persisted into the gateway's model registry.
Evidence: gateway log shows agent model: codex/gpt-5.4 and ready (10 plugins: ...) at 09:55:15, but codex is not in the 10 plugins. Warmup fails at 09:55:31 with Unknown model. The openai-codex provider (which uses the older registration path) has 9 models fully discovered and available.
Similar Issues
Expected Behavior
The native codex provider catalog should be fully registered before warmup runs, with the full discovered model list visible in openclaw models list.
Environment
Config
plugins.entries.codex.enabled: truecodexinplugins.allowagents.defaults.model.primary: "codex/gpt-5.4"plugins.entries.codex.config.discovery.enabled: trueplugins.entries.codex.config.discovery.timeoutMs: 10000Symptoms
startup model warmup failed for codex/gpt-5.4: Error: Unknown model: codex/gpt-5.4on every restartopenclaw models listshows only the 2 hardcoded fallback models (gpt-5.4, gpt-5.4-mini) undercodex/, not the full discovered catalogopenclaw models list --all --provider codexreturns "No models found"openclaw models list --all --jsonshows 0 models with provider=codex, while openai-codex has 9 discovered modelsopenclaw models status --agent claudereports "Missing auth - codex"openclaw plugins listbut is NOT in the gateway ready plugin list (10 plugins listed, codex absent)What Works
codex app-server --listen stdio://responds toinitialize+model/listin <100ms, returning 5+ modelsopenclaw agent --agent claude --message "test"successfully usescodex/gpt-5.4(provider=codex, model=gpt-5.4, status=ok)Root Cause Hypothesis
The Codex provider registers with
catalog.order: "late"in the plugin code. The gateway warmup check runs before the late-order catalog has completed, so warmup fails with "Unknown model." The catalog builder (buildCodexProviderCatalog) either never runs or its result is not persisted into the gateway's model registry.Evidence: gateway log shows
agent model: codex/gpt-5.4andready (10 plugins: ...)at 09:55:15, but codex is not in the 10 plugins. Warmup fails at 09:55:31 with Unknown model. Theopenai-codexprovider (which uses the older registration path) has 9 models fully discovered and available.Similar Issues
Expected Behavior
The native
codexprovider catalog should be fully registered before warmup runs, with the full discovered model list visible inopenclaw models list.