






















@@ -658,6 +658,36 @@ installed and enabled. If you need strict proof while testing, set provider or
658658model `agentRuntime.id: "codex"`. A forced Codex runtime fails instead of
659659falling back to PI.
660660661+**OpenAI Codex runtime falls back to the API-key path:** collect a redacted
662+gateway excerpt that shows the model, runtime, selected provider, and failure.
663+Ask affected collaborators to run this read-only command on their OpenClaw host:
664+665+```bash
666+(
667+ pattern='openai/gpt-5\.[45]|agentRuntime(\.id)?|harnessRuntime|Runtime: OpenAI Codex|openai-codex|resolveSelectedOpenAIPiRuntimeProvider|candidateProvider[": ]+openai|status[": ]+401|Incorrect API key|No API key|api-key path|API-key path|OAuth'
668+669+if ls /tmp/openclaw/openclaw-*.log >/dev/null 2>&1; then
670+ grep -E -i -n "$pattern" /tmp/openclaw/openclaw-*.log 2>/dev/null || true
671+else
672+ journalctl --user -u openclaw-gateway --since today --no-pager 2>/dev/null \
673+| grep -E -i "$pattern" || true
674+fi
675+) | sed -E \
676+ -e 's/(Authorization: Bearer )[A-Za-z0-9._~+\/-]+/\1[REDACTED]/Ig' \
677+ -e 's/(Bearer )[A-Za-z0-9._~+\/-]+/\1[REDACTED]/Ig' \
678+ -e 's/(api[_ -]?key[=: ]+)[^ ,}"]+/\1[REDACTED]/Ig' \
679+ -e 's/(OPENAI_API_KEY[=: ]+)[^ ,}"]+/\1[REDACTED]/Ig' \
680+ -e 's/sk-[A-Za-z0-9_-]{12,}/sk-[REDACTED]/g' \
681+ -e 's/[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}/[EMAIL-REDACTED]/g' \
682+| tail -200
683+```
684+685+Useful excerpts usually include `openai/gpt-5.5` or `openai/gpt-5.4`,
686+`Runtime: OpenAI Codex`, `agentRuntime.id` or `harnessRuntime`,
687+`candidateProvider: "openai"`, and a `401`, `Incorrect API key`, or
688+`No API key` result. A corrected run should show the `openai-codex` OAuth
689+path instead of a plain OpenAI API-key failure.
690+661691**Legacy `openai-codex/*` config remains:** run `openclaw doctor --fix`.
662692Doctor rewrites legacy model refs to `openai/*`, removes stale session and
663693whole-agent runtime pins, and preserves existing auth-profile overrides.
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。