fix: install Codex for OpenAI onboarding#79709
Conversation
|
Codex review: needs changes before merge. Summary Reproducibility: yes. at source level. Current main lacks the noninteractive Codex install call, the linked Docker onboarding report shows the user-visible failure, and this PR's body provides after-fix Testbox live output, though this read-only review did not rerun the Docker lane. Real behavior proof Next step before merge Security Review findings
Review detailsBest possible solution: Share or extend the Codex-install decision so it resolves provider/model runtime policy and skips explicit PI before invoking the noninteractive installer, while keeping automatic Codex install/load for implicit OpenAI routes. Do we have a high-confidence way to reproduce the issue? Yes, at source level. Current main lacks the noninteractive Codex install call, the linked Docker onboarding report shows the user-visible failure, and this PR's body provides after-fix Testbox live output, though this read-only review did not rerun the Docker lane. Is this the best way to solve the issue? No as written. The startup-planning direction is narrow and matches the documented runtime policy, but the noninteractive installer needs the same explicit-PI guard before merge. Full review comments:
Overall correctness: patch is incorrect Acceptance criteria:
What I checked:
Likely related people:
Remaining risk / open question:
Codex review notes: model gpt-5.5, reasoning high; reviewed against 602c59a092fd. |
* fix: install codex for openai onboarding * docs: require crabbox e2e bug proof
* fix: install codex for openai onboarding * docs: require crabbox e2e bug proof
* fix: install codex for openai onboarding * docs: require crabbox e2e bug proof
* fix: install codex for openai onboarding * docs: require crabbox e2e bug proof
Summary
Fixes #79358.
Real behavior proof
openai/*model routes so API-key profiles work without a manual harness override..profileOpenAI key mounted into Docker with secret output redacted.env CI=1 OPENCLAW_NPM_ONBOARD_CHANNEL=telegram OPENCLAW_VITEST_NO_OUTPUT_TIMEOUT_MS=900000 pnpm test:docker:npm-onboard-channel-agent;env CI=1 OPENCLAW_CODEX_NPM_PLUGIN_MODEL=openai/gpt-5.5 OPENCLAW_CODEX_NPM_PLUGIN_ALLOW_BETA_COMPAT_DIAGNOSTICS=1 OPENCLAW_VITEST_NO_OUTPUT_TIMEOUT_MS=900000 bash scripts/e2e/codex-npm-plugin-live-docker.sh.npm tarball onboard/channel/agent Docker E2E passed (telegram)fromtbx_01kr5sh9aqw6k6yn2jw12vdywy; copied live output from Testbox:Codex npm plugin live Docker E2E passedfromtbx_01kr5sqhcb4sjx0m1rzp5aabpn.@openclaw/codex, logged in with the.profileOpenAI key, ran Codex preflight, and completed an OpenClaw agent turn throughopenai/gpt-5.5.Missing bearer or basic authentication in headermessage after the fix; the issue comment asks for redacted config snippets if that symptom remains.Verification
pnpm test src/commands/onboard-non-interactive/local/auth-choice.plugin-providers.test.ts src/plugins/channel-plugin-ids.test.ts src/commands/auth-choice.test.tsenv -u OPENCLAW_TESTBOX pnpm check:changed --staged