fix(codex): align OAuth defaults and setup docs (#4910)

* fix(codex): align OAuth defaults and setup docs

* docs(codex): clarify provider settings key

* docs(codex): simplify OAuth setup guidance
This commit is contained in:
chengyongru
2026-07-13 17:04:33 +08:00
committed by GitHub
parent 8c9110fee3
commit 234e895e5a
9 changed files with 46 additions and 83 deletions
@@ -18,6 +18,7 @@ from nanobot.providers.openai_codex_provider import (
_request_codex,
_should_retry_status,
)
from nanobot.providers.registry import find_by_name
def _mock_codex_token(monkeypatch: pytest.MonkeyPatch) -> None:
@@ -30,6 +31,14 @@ def _mock_codex_token(monkeypatch: pytest.MonkeyPatch) -> None:
)
def test_codex_default_model_matches_curated_flagship() -> None:
spec = find_by_name("openai_codex")
assert spec is not None
assert spec.builtin_models
assert OpenAICodexProvider().get_default_model() == spec.builtin_models[0].id
class _WarningCaptureLogger:
def __init__(self) -> None:
self.calls: list[tuple[str, tuple[Any, ...]]] = []