fix(doctor): warn when stale Codex overrides shadow OAuth#40143
Merged
steipete merged 4 commits intoopenclaw:mainfrom Apr 8, 2026
Merged
fix(doctor): warn when stale Codex overrides shadow OAuth#40143steipete merged 4 commits intoopenclaw:mainfrom
steipete merged 4 commits intoopenclaw:mainfrom
Conversation
Contributor
Greptile SummaryThis PR adds a targeted Key points:
Confidence Score: 4/5
Last reviewed commit: e329868 |
db2737b to
c41cfa3
Compare
Contributor
|
Landed via temp rebase onto main.
Thanks @bde1! |
eleqtrizit
pushed a commit
that referenced
this pull request
Apr 8, 2026
* fix(doctor): warn on stale codex provider overrides * test(doctor): cover stored codex oauth warning path * fix: narrow codex override doctor warning (#40143) (thanks @bde1) * test: sync doctor e2e mocks after health-flow move (#40143) (thanks @bde1) --------- Co-authored-by: bde1 <[email protected]> Co-authored-by: Peter Steinberger <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Describe the problem and fix in 2–5 bullets:
models.providers.openai-codexoverrides can keep shadowing the built-in Codex OAuth provider path after users upgrade.openclaw doctornow warns when it finds a legacymodels.providers.openai-codextransport override alongside a configured or stored Codex OAuth profile; docs and regression coverage were added.Change Type (select all)
Scope (select all touched areas)
Linked Issue/PR
User-visible / Behavior Changes
openclaw doctornow warns when a legacymodels.providers.openai-codextransport override is present at the same time as Codex OAuth, and points users to remove the stale override if they want the built-in Codex OAuth path back.Security Impact (required)
Yes/No) NoYes/No) NoYes/No) NoYes/No) NoYes/No) NoYes, explain risk + mitigation:Repro + Verification
Environment
pnpm/ Nodeopenai-codex)models.providers.openai-codexoverride plusauth.profiles["openai-codex:<email>"] = { provider: "openai-codex", mode: "oauth" }Steps
models.providers.openai-codextransport override.openclaw doctor.Expected
models.providers.openai-codextransport override can shadow the built-in Codex OAuth path.Actual
Evidence
Attach at least one:
Human Verification (required)
What you personally verified (not just CI), and how:
Review Conversations
Compatibility / Migration
Yes/No) YesYes/No) NoYes/No) NoFailure Recovery (if this breaks)
src/commands/doctor-auth.ts,src/commands/doctor.ts,docs/gateway/doctor.md, and the added regression cases.Risks and Mitigations
List only real risks for this PR. Add/remove entries as needed. If none, write
None.openai-codextransport override.AI Assistance
pnpm build, and the fullpnpm testsuite.Verification Commands
pnpm exec vitest run src/commands/doctor-auth.deprecated-cli-profiles.test.tspnpm exec vitest run --config vitest.e2e.config.ts src/commands/doctor.warns-state-directory-is-missing.e2e.test.tspnpm check:docsgit diff --checkpnpm buildpnpm test